Class: RablTemplate
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- RablTemplate
- Defined in:
- lib/rabl/template.rb
Instance Method Summary collapse
Instance Method Details
#evaluate(scope, locals, &block) ⇒ Object
14 15 16 |
# File 'lib/rabl/template.rb', line 14 def evaluate(scope, locals, &block) @engine.render(scope, locals, &block) end |
#initialize_engine ⇒ Object
4 5 6 7 |
# File 'lib/rabl/template.rb', line 4 def initialize_engine return if defined?(::Rabl) require_template_library 'rabl' end |