Module: Expansions::MustacheTemplateFile

Extended by:
MustacheTemplateFile
Included in:
MustacheTemplateFile
Defined in:
lib/expansions/mustache_template_file.rb

Instance Method Summary collapse

Instance Method Details

#process(args) ⇒ Object



5
6
7
8
9
# File 'lib/expansions/mustache_template_file.rb', line 5

def process(args)
  template = File.read_all_text(args[:input])

  File.open_for_write(args[:output]){|file| file << Mustache.render(template,configatron.to_hash)}
end