Class: Clementine::ClojureScriptTemplate

Inherits:
Tilt::Template
  • Object
show all
Defined in:
lib/clementine/clojurescript_template.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.engine_initialized?Boolean

Returns:

  • (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_engineObject



11
# File 'lib/clementine/clojurescript_template.rb', line 11

def initialize_engine; end

#prepareObject



13
14
15
# File 'lib/clementine/clojurescript_template.rb', line 13

def prepare
  @engine = ClojureScriptEngine.new(@file, options)
end