Method: Nancy::Render#render

Defined in:
lib/nancy/render.rb

#render(template, locals = {}, options = {}, &block) ⇒ Object



6
7
8
9
10
# File 'lib/nancy/render.rb', line 6

def render(template, locals = {}, options = {}, &block)
  templates_cache.fetch(template) {
    Tilt.new(template, options)
  }.render(self, locals, &block)
end