Update CoffeeScript section with requirements for ruby-coffee-script 2.x.

This commit is contained in:
Konstantin Haase 2011-01-11 09:34:26 +01:00
parent ee2e6adcf7
commit de11b441bf
1 changed files with 10 additions and 2 deletions

View File

@ -474,8 +474,16 @@ Renders <tt>./views/index.slim</tt>.
=== CoffeeScript Templates === CoffeeScript Templates
The coffee-script gem/library and the `coffee` binary are required to render The <tt>coffee-script</tt> gem/library and at least <b>one</b> of the
CoffeeScript templates: following options to execute JavaScript:
* +node+ (from Node.js) in your path
* you must be running on OSX
* +therubyracer+ gem/library
See http://github.com/josh/ruby-coffee-script for an updated list of options.
Now you can render CoffeeScript templates:
# You'll need to require coffee-script in your app # You'll need to require coffee-script in your app
require 'coffee-script' require 'coffee-script'