Class: Myth::Rails::MythTemplate
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- Myth::Rails::MythTemplate
- Defined in:
- lib/myth/rails/myth_template.rb
Overview
Myth template implementation. See: myth.io/
Myth templates do not support object scopes, locals, or yield.
Instance Method Summary collapse
Instance Method Details
#allows_script? ⇒ Boolean
20 21 22 |
# File 'lib/myth/rails/myth_template.rb', line 20 def allows_script? false end |
#evaluate(scope, locals, &block) ⇒ Object
16 17 18 |
# File 'lib/myth/rails/myth_template.rb', line 16 def evaluate(scope, locals, &block) @output ||= ::Myth.preprocess(data, ) end |
#prepare ⇒ Object
13 14 |
# File 'lib/myth/rails/myth_template.rb', line 13 def prepare end |