module Mattock::TemplateTaskLib

@deprecated Use {Valise::Set#templates} instead

Public Instance Methods

template_task(template_source, destination_path, template_options = nil) click to toggle source

@deprecated Use {Valise::Set#templates} instead

# File lib/mattock/template-host.rb, line 53
def template_task(template_source, destination_path, template_options = nil)
  unless template_options.nil?
    valise.add_serialization_handler(template_source, :tilt, :template_options => template_options)
  end

  file template_path(template_source)
  file destination_path => template_path(template_source) do
    File::open(destination_path, "w") do |file|
      file.write(render(template_source))
    end
  end
end