lib/mattock/template-host.rb in mattock-0.4.1 vs lib/mattock/template-host.rb in mattock-0.5.0
- old
+ new
@@ -12,10 +12,11 @@
end
module_function :rel_dir, :default_valise
public :rel_dir, :default_valise
end
+ #@deprecated Use {Valise::Set#templates} instead
module TemplateHost
attr_accessor :valise
def templates_are_in(valise)
self.valise = valise.templates
@@ -42,12 +43,14 @@
template(path).render(self, locals)
end
end
+ #@deprecated Use {Valise::Set#templates} instead
module TemplateTaskLib
include TemplateHost
+ #@deprecated Use {Valise::Set#templates} instead
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