ruby-coffee-react

ruby-coffee-react is a bridge to the npm coffee-react-transform module.

CoffeeReact.transform File.open("component.cjsx")

Installation

gem install coffee-react

Compatibility

The version numbers of this gem follow those of the coffee-react-transform npm package. See information about compatibility with different versions of React.

Dependencies

JSON

The json library is also required but is not explicitly stated as a gem dependency. If you're on Ruby 1.8 you'll need to install the json or json_pure gem. On Ruby 1.9, json is included in the standard library.

ExecJS

The ExecJS library is used to automatically choose the best JavaScript engine for your platform. Check out its README for a complete list of supported engines.

This gem has been tested against the following ExecJS runtimes: Node, RubyRacer, JavaScriptCore. If you encounter any problems with these or any other ExecJS runtimes, please create a issue.