Class: BareCoffee::Template

Inherits:
Tilt::CoffeeScriptTemplate
  • Object
show all
Defined in:
lib/bare_coffee.rb

Overview

An Extension for Sprockets to enable the –bare option for CoffeeScript’s compilier. Thus, the compiler will compile the coffeescript without a top-level function wrapper.

Instance Method Summary collapse

Instance Method Details

#prepareObject



9
10
11
12
# File 'lib/bare_coffee.rb', line 9

def prepare
  options[:bare] = true
  super
end