Class: FlavourSaver::Template
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- FlavourSaver::Template
- Defined in:
- lib/flavour_saver/template.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.engine_initialized? ⇒ Boolean
6 7 8 |
# File 'lib/flavour_saver/template.rb', line 6 def self.engine_initialized? true end |
Instance Method Details
#evaluate(scope = Object.new, locals = {}, &block) ⇒ Object
14 15 16 |
# File 'lib/flavour_saver/template.rb', line 14 def evaluate(scope=Object.new,locals={},&block) Runtime.run(@ast,scope,locals) end |
#prepare ⇒ Object
10 11 12 |
# File 'lib/flavour_saver/template.rb', line 10 def prepare @ast = Parser.parse(Lexer.lex(data)) end |