Permalink
Browse files

Run coffee through coffee executable

  • Loading branch information...
1 parent bb4dd25 commit 7d8e36553bdf283a5c2247082aca06f79f5696e7 @jnicklas committed Mar 9, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/bistro_car/bundle.rb
View
@@ -16,10 +16,14 @@ def render(mode)
end
def to_javascript
- minify(file_paths.map { |path| CoffeeScript.compile(File.read(path)) }.join)
+ minify(file_paths.map { |path| compile(path) }.join)
end
private
+
+ def compile(path)
+ %x(coffee -p #{path})
+ end
def minify(javascript)
if BistroCar.minify then JSMin.minify(javascript) else javascript end

0 comments on commit 7d8e365

Please sign in to comment.