Class: Pieces::Tilt::MustacheTemplate
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- Pieces::Tilt::MustacheTemplate
- Defined in:
- lib/pieces/tilt/mustache.rb
Instance Method Summary collapse
Instance Method Details
#evaluate(scope, locals, &block) ⇒ Object
8 9 10 11 |
# File 'lib/pieces/tilt/mustache.rb', line 8 def evaluate(scope, locals, &block) require 'mustache' Mustache.render(data, with_block(view_model(scope, locals), &block)) end |
#initialize_engine ⇒ Object
4 |
# File 'lib/pieces/tilt/mustache.rb', line 4 def initialize_engine; end |
#prepare ⇒ Object
6 |
# File 'lib/pieces/tilt/mustache.rb', line 6 def prepare; end |