This gem is a wrapper for Derick Bailey's Backbone.Marionette library. It vendors the javascript library code for use with Rails' asset pipeline (Rails 3.1+).
Backbone.Marionette depends on Backbone (and Backbone's dependencies). These dependencies are not currently managed by the marionette-rails
gem directly, because there exists multiple options to use Backbone with the Rails asset pipeline, such as backbone-on-rails
, backbone-rails
, rails-backbone
, just to name a few.
Add it to your Gemfile:
group :assets do
# Your other asset gems (sass-rails, coffee-rails, etc)
gem 'marionette-rails'
end
Then add this to app/assets/javascripts/application.js.coffee
:
#= require backbone.marionette
Or, if you are using pure javascript, add this to app/assets/javascripts/application.js
:
//= require backbone.marionette
The gem will mirror the Backbone.Marionette versioning scheme. That is, version 0.8.2.* of marionette-rails
would vendor Backbone.Marionette v0.8.2.
For bugs in Backbone.Marionette itself, head over to their issue tracker. If you have a question, post it at StackOverflow under the backbone.marionette
tag.
For bugs in this gem distribution, use the GitHub issue tracker. If you could submit a pull request - that's even better!
If you're using Marionette and you're finding that it is saving you time and effort, then please consider donating to the upstream Backbone.Marionette project.
This library is distributed under the MIT license. Please see the LICENSE file.