Sha256: ef8695a9875c11c1f5b7d311e2b2e46d46e3131600ab2d5f07d834998451ad66
Contents?: true
Size: 403 Bytes
Versions: 3
Compression:
Stored size: 403 Bytes
Contents
require 'tilt/template' module Clementine class ClojureScriptTemplate < Tilt::Template self.default_mime_type = 'application/javascript' def self.engine_initialized? true end def initialize_engine; end def prepare @engine = ClojureScriptEngine.new(@file, options) end def evaluate(scope, locals, &block) @output ||= @engine.compile end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
clementine-0.0.3 | lib/clementine/clojurescript_template.rb |
clementine-0.0.2 | lib/clementine/clojurescript_template.rb |
clementine-0.0.1 | lib/clementine/clojurescript_template.rb |