Module: Cats::Core::DocumentHelper

Defined in:
app/helpers/cats/core/document_helper.rb

Instance Method Summary collapse

Instance Method Details

#generate_document(template, output, data) ⇒ Object



6
7
8
9
# File 'app/helpers/cats/core/document_helper.rb', line 6

def generate_document(template, output, data)
  tpl = Sablon.template(template)
  tpl.render_to_file(output, data)
end