def generate_file(dest,file,options={})
      return if @generated_files.has_key?(dest)

      path = interpolate(dest)

      if options[:template]
        @current_template_dir = File.dirname(dest)
        template file, path
        @current_template_dir = nil
      else
        copy_file file, path
      end

      @generated_files[dest] = path
      return path
    end
def generate_file(dest,file,options={})
      return if @generated_files.has_key?(dest)

      path = interpolate(dest)

      if options[:template]
        @current_template_dir = File.dirname(dest)
        template file, path
        @current_template_dir = nil
      else
        copy_file file, path
      end

      @generated_files[dest] = path
      return path
    end
Generates a file.

 @param [String] dest
   The uninterpolated destination path.

 @param [String] file
   The source file or template.

 @param [Hash] options
   Additional options.

 @option options [Boolean] :template
   Specifies that the file is a template, and should be rendered.

 @return [String]
   The destination path of the file.

 @since 0.7.1