batman-rails-flo
Live-reload your batman.js app with fb-flo
.
Features
- Live reloading Models, Controllers and Views
- Live reloading HTML templates
- Live reloading CSS
- Fires
liveReload
onMyApp
so you can define custom handlers
Installation
Get the fb-flo
Chrome extension.
Add this line to your application's Gemfile:
gem 'batman-rails-flo'
And then execute:
$ bundle
Add the client code to your batman.js app's Sprockets manifest:
#= require batman/live_reload
Run the live-reload server
You'll need node.js. Execute:
$ bundle exec rake batman:live_reload
And re-connect with the fb-flo
plugin if necessary
Contributing
- Fork it ( https://github.com/[my-github-username]/batman-rails-flo/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request