middleman-react

Use React JSX transformations with Middleman.
Inspired (and pretty much a clone of really) the react-rails gem for Middleman. This gem allows you to write and use *.jsx assets inside Middleman.
Usage
gem install middleman-reactactivate :reactinconfig.rb
Sprockets loading react-source
In your Middleman config.rb add the following:
after_configuration do
sprockets.append_path File.dirname(::React::Source.bundled_path_for('react.js'))
end
Now you can Sprockets include React:
//= require react
Or with addons:
//= require react-with-addons
Developing / Contributing
- Fork it!
- Get set up:
./script/bootstrap - ...?
- Run specs:
./script/spec - Pull request!