Class: Clementine::ClojureScriptTemplate
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- Clementine::ClojureScriptTemplate
- Defined in:
- lib/clementine/clojurescript_template.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.engine_initialized? ⇒ Boolean
7 8 9 |
# File 'lib/clementine/clojurescript_template.rb', line 7 def self.engine_initialized? true end |
Instance Method Details
#evaluate(scope, locals, &block) ⇒ Object
17 18 19 |
# File 'lib/clementine/clojurescript_template.rb', line 17 def evaluate(scope, locals, &block) @output ||= @engine.compile end |
#initialize_engine ⇒ Object
11 |
# File 'lib/clementine/clojurescript_template.rb', line 11 def initialize_engine; end |
#prepare ⇒ Object
13 14 15 |
# File 'lib/clementine/clojurescript_template.rb', line 13 def prepare @engine = ClojureScriptEngine.new(@file, ) end |