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.



64
65
66
67
# File 'lib/mustache_render/mustache.rb', line 64

def file_render(name, context = {})
  @media = :file
  render(partial(name), context)
end