Method: MustacheRender::Mustache.file_render

Defined in:
lib/mustache_render/mustache.rb

.file_render(name, context = {}) ⇒ Object

Given a file name and an optional context, attempts to load and render the file as a template.



58
59
60
# File 'lib/mustache_render/mustache.rb', line 58

def self.file_render(name, context = {})
  self.new.file_render name, context
end