developwithpassion/expansions

View on GitHub
lib/expansions/mustache_template_file.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Expansions
  module MustacheTemplateFile
    extend self

    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
  end
end