Class: Mustache
- Inherits:
-
Object
- Object
- Mustache
- Defined in:
- lib/www_app.rb
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#render(data = template, ctx = {}) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/www_app.rb', line 14 def render(data = template, ctx = {}) ctx = data tpl = templateify(template) begin context.push(ctx) tpl.render(context) ensure context.pop end end |