Module: Volt::TemplateHelpders::ClassMethods
- Defined in:
- lib/volt/controllers/template_helpers.rb
Instance Method Summary collapse
Instance Method Details
#template(name, template, bindings) ⇒ Object
4 5 6 |
# File 'lib/volt/controllers/template_helpers.rb', line 4 def template(name, template, bindings) @templates[name] = { 'html' => template, 'bindings' => bindings } end |