class Mustache

Public Instance Methods

render(data = template, ctx = {}) click to toggle source
# File lib/www_app/TO.rb, line 23
def render(data = template, ctx = {})
  ctx = data
  tpl = templateify(template)

  begin
    context.push(ctx)
    tpl.render(context)
  ensure
    context.pop
  end
end