Class: Sliq::Template
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- Sliq::Template
- 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() { liquid }.render(scope, locals, &block) end |
#prepare ⇒ Object
88 89 90 |
# File 'lib/sliq.rb', line 88 def prepare @converter = Converter.new() { data } end |