Class: DevelopWithPassion::Expander::MustacheTemplateFile

Inherits:
Object
  • Object
show all
Defined in:
lib/developwithpassion_expander/mustache_template_file.rb

Instance Method Summary collapse

Instance Method Details

#process(args) ⇒ Object



4
5
6
7
8
# File 'lib/developwithpassion_expander/mustache_template_file.rb', line 4

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