CoffeeScript template implementation. See: coffeescript.org/
CoffeeScript templates do not support object scopes, locals, or yield.
# File lib/tilt.rb, line 599 def self.default_no_wrap @@default_no_wrap end
# File lib/tilt.rb, line 603 def self.default_no_wrap=(value) @@default_no_wrap = value end
# File lib/tilt.rb, line 617 def evaluate(scope, locals, &block) @output ||= CoffeeScript.compile(data, :no_wrap => @no_wrap) end
# File lib/tilt.rb, line 607 def initialize_engine return if defined? ::CoffeeScript require_template_library 'coffee_script' end
# File lib/tilt.rb, line 612 def prepare @no_wrap = options.key?(:no_wrap) ? options[:no_wrap] : self.class.default_no_wrap end