Parent

Tilt::CoffeeScriptTemplate

CoffeeScript template implementation. See: coffeescript.org/

CoffeeScript templates do not support object scopes, locals, or yield.

Public Class Methods

default_bare() click to toggle source
# File lib/tilt/coffee.rb, line 14
def self.default_bare
  @@default_bare
end
default_bare=(value) click to toggle source
# File lib/tilt/coffee.rb, line 18
def self.default_bare=(value)
  @@default_bare = value
end
default_no_wrap() click to toggle source

DEPRECATED

# File lib/tilt/coffee.rb, line 23
def self.default_no_wrap
  @@default_bare
end
default_no_wrap=(value) click to toggle source

DEPRECATED

# File lib/tilt/coffee.rb, line 28
def self.default_no_wrap=(value)
  @@default_bare = value
end

Public Instance Methods

allows_script?() click to toggle source
# File lib/tilt/coffee.rb, line 42
def allows_script?
  false
end
evaluate(scope, locals, &block) click to toggle source
# File lib/tilt/coffee.rb, line 38
def evaluate(scope, locals, &block)
  @output ||= CoffeeScript.compile(data, options)
end
prepare() click to toggle source
# File lib/tilt/coffee.rb, line 32
def prepare
  if !options.key?(:bare) and !options.key?(:no_wrap)
    options[:bare] = self.class.default_bare
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.