Update CoffeeScript section with requirements for ruby-coffee-script 2.x.
This commit is contained in:
parent
ee2e6adcf7
commit
de11b441bf
12
README.rdoc
12
README.rdoc
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue