Class: Pieces::Tilt::MustacheTemplate

Inherits:
Tilt::Template
  • Object
show all
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_engineObject



4
# File 'lib/pieces/tilt/mustache.rb', line 4

def initialize_engine; end

#prepareObject



6
# File 'lib/pieces/tilt/mustache.rb', line 6

def prepare; end