3 ms·
CoffeeScript isn't interpreted; it's not its own language. You write CoffeeScript code, which resembles simplified and cleaned-up Javascript, and then run a par
by sabat 16y ago
CoffeeScript isn't interpreted; it's not its own language. You write CoffeeScript code, which resembles simplified and cleaned-up Javascript, and then run a parser over it which converts it to standard Javascript.
You'll need CoffeeScript (gem) installed in this situation, but that's just another Rails dependency.
EDIT: I should point out that Rails will use CoffeeScript for client-side (browser) code, not server-side code. That remains Ruby and associated DSLs.
- bonzoesc 16y agoThe coffeescript compiler is written in coffeescript (and compiled to JS), so in order to serve a .coffee file you'll need to compile it, which requires JS. The commits add a dependency to the coffee-script[1] gem, which requires the execjs[2] gem, which requires some way of running JS. 1: https://github.com/josh/ruby-coffee-script https://github.com/josh/ruby-coffee-script 2: https://github.com/sstephenson/execjs https://github.com/sstephenson/execjs