Class: Codgen::MustacheTemplateProvider
- Inherits:
-
TemplateProvider
- Object
- TemplateProvider
- Codgen::MustacheTemplateProvider
- Defined in:
- lib/codgen/template_provider.rb
Instance Method Summary collapse
Instance Method Details
#extension ⇒ Object
31 32 33 |
# File 'lib/codgen/template_provider.rb', line 31 def extension '.mustache' end |
#name ⇒ Object
27 28 29 |
# File 'lib/codgen/template_provider.rb', line 27 def name 'mustache' end |
#render(template, data) ⇒ Object
23 24 25 |
# File 'lib/codgen/template_provider.rb', line 23 def render(template, data) Mustache.render(template, data) end |