Method: Stitch::CoffeeScriptCompiler#compile

Defined in:
lib/stitch/compilers/coffeescript.rb

#compile(path) ⇒ Object



14
15
16
17
# File 'lib/stitch/compilers/coffeescript.rb', line 14

def compile(path)
  source = File.read(path)
  CoffeeScript.compile(source, :filename => path.to_s)
end