Class: Coffeekupper::Template
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- Coffeekupper::Template
- Defined in:
- lib/coffeekupper/template.rb
Instance Method Summary collapse
Instance Method Details
#evaluate(scope, locals, &block) ⇒ Object
12 13 14 |
# File 'lib/coffeekupper/template.rb', line 12 def evaluate(scope, locals, &block) %( (function(){ var tmpl = #{template_as_string(data)}; return CoffeeKup.compile(tmpl) })() ) end |
#prepare ⇒ Object
9 10 |
# File 'lib/coffeekupper/template.rb', line 9 def prepare end |