lib/asset_compiler.rb in vitrine-0.0.15 vs lib/asset_compiler.rb in vitrine-0.0.16
- old
+ new
@@ -77,10 +77,10 @@
# We could have sent a header, but it's a nice idea to have the
# sourcemap header saved if we write out the compiled JS,
# whereas otherwise it would have been discarded
[
"//# sourceMappingURL=#{basename}.js.map",
- CoffeeScript.compile(source_body)
+ Vitrine.compile_coffeescript(source_body)
].join("\n")
end
rescue Errno::ENOENT # Missing CoffeeScript
forward_or_halt "No such JS file and could not find a .coffee replacement"
rescue Exception => e # CS syntax error or something alike