module Expansions::MustacheTemplateFile

Public Instance Methods

process(args) click to toggle source
# 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