Class: Codgen::MustacheTemplateProvider

Inherits:
TemplateProvider show all
Defined in:
lib/codgen/template_provider.rb

Instance Method Summary collapse

Instance Method Details

#extensionObject



31
32
33
# File 'lib/codgen/template_provider.rb', line 31

def extension
  '.mustache'
end

#nameObject



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