Class: Spirit::Tilt::Template
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- Spirit::Tilt::Template
- Defined in:
- lib/spirit/tilt/template.rb
Overview
Template adapter for Tilt. This class depends on the tilt gem.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#allows_script? ⇒ Boolean
27 28 29 |
# File 'lib/spirit/tilt/template.rb', line 27 def allows_script? false end |
#evaluate(scope, locals, &block) ⇒ Object
23 24 25 |
# File 'lib/spirit/tilt/template.rb', line 23 def evaluate(scope, locals, &block) @output ||= @engine.render end |