Engine gems are convenient for versioning and packaging static assets. Lionel lets you use assets packaged as Engines without depending on Rails.
Add this line to your application's Gemfile:
gem 'lionel'
And then execute:
$ bundle
If you want to serve/build assets from an engine, add this to your config.rb
activate :lionel do |l|
l.engines_with_images << "#{engine_name}"
end
(see the demo app for example)
- backbone-rails - depends on Rails so lionel isn't necessary.
- Fork it
- 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 new Pull Request