Class: RogerStyleGuide::Templates::Mustache::TiltTemplate

Inherits:
Tilt::Template
  • Object
show all
Defined in:
lib/roger_style_guide/templates/mustache/tilt_template.rb

Overview

Tile template wrapper for our Mustache template

Instance Method Summary collapse

Instance Method Details

#evaluate(scope, locals) ⇒ Object



10
11
12
# File 'lib/roger_style_guide/templates/mustache/tilt_template.rb', line 10

def evaluate(scope, locals)
  @mustache.render(data, locals, scope)
end

#prepareObject



6
7
8
# File 'lib/roger_style_guide/templates/mustache/tilt_template.rb', line 6

def prepare
  @mustache = MustacheTemplate.new
end