| Class | Tilt::CoffeeScriptTemplate |
| In: |
lib/tilt/coffee.rb
|
| Parent: | Template |
CoffeeScript template implementation. See: coffeescript.org/
CoffeeScript templates do not support object scopes, locals, or yield.
# File lib/tilt/coffee.rb, line 17
17: def self.default_bare=(value)
18: @@default_bare = value
19: end
DEPRECATED
# File lib/tilt/coffee.rb, line 22
22: def self.default_no_wrap
23: @@default_bare
24: end
DEPRECATED
# File lib/tilt/coffee.rb, line 27
27: def self.default_no_wrap=(value)
28: @@default_bare = value
29: end
# File lib/tilt/coffee.rb, line 31
31: def self.engine_initialized?
32: defined? ::CoffeeScript
33: end
# File lib/tilt/coffee.rb, line 45
45: def evaluate(scope, locals, &block)
46: @output ||= CoffeeScript.compile(data, options)
47: end