class Tilt::CoffeeScriptTemplate
CoffeeScript templates do not support object scopes, locals, or yield.
/
CoffeeScript template implementation. See:
def self.default_bare
def self.default_bare @@default_bare end
def self.default_bare=(value)
def self.default_bare=(value) @@default_bare = value end
def self.default_no_wrap
def self.default_no_wrap @@default_bare end
def self.default_no_wrap=(value)
def self.default_no_wrap=(value) @@default_bare = value end
def self.engine_initialized?
def self.engine_initialized? defined? ::CoffeeScript end
def evaluate(scope, locals, &block)
def evaluate(scope, locals, &block) @output ||= CoffeeScript.compile(data, options) end
def initialize_engine
def initialize_engine require_template_library 'coffee_script' end
def prepare
def prepare if !options.key?(:bare) and !options.key?(:no_wrap) options[:bare] = self.class.default_bare end end