Method: Butler::Plugin.create_templates

Defined in:
lib/butler/plugin.rb

.create_templates(tmpl, name) ⇒ Object



83
84
85
86
87
88
89
90
91
92
93
# File 'lib/butler/plugin.rb', line 83

def create_templates(tmpl, name)
	tmpl.each { |key,value|
		begin
			tmpl[key] = Templater.new(value)
		rescue Exception => e
			e.extend Exception::Detail
			e.prepend "Could not map #{key} in #{@base} (#{name})."
			exception(e)
		end
	}
end