Class: Tilt::Sibilant::SibilantTemplate

Inherits:
Template
  • Object
show all
Defined in:
lib/sibilant/tilt.rb

Instance Method Summary collapse

Instance Method Details

#evaluate(scope, locals, &block) ⇒ Object



14
15
16
# File 'lib/sibilant/tilt.rb', line 14

def evaluate(scope, locals, &block)
  @compiler.translate data
end

#prepareObject



9
10
11
# File 'lib/sibilant/tilt.rb', line 9

def prepare
  @compiler = ::Sibilant::Compiler.new
end