Class: Sliq::Template

Inherits:
Tilt::Template
  • Object
show all
Defined in:
lib/sliq.rb

Instance Method Summary collapse

Instance Method Details

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



92
93
94
95
# File 'lib/sliq.rb', line 92

def evaluate(scope, locals, &block)
  liquid = @converter.render(scope, locals, &block)
  Tilt::LiquidTemplate.new(options) { liquid }.render(scope, locals, &block)
end

#prepareObject



88
89
90
# File 'lib/sliq.rb', line 88

def prepare
  @converter = Converter.new(options) { data }
end