Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
[Deprecated] An AMD-compatible startup pack for developers using Require.js and Backbone.js in their projects.
JavaScript
Tree: eaf3e22098

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
public
.DS_Store
Gemfile
Gemfile.lock
Rakefile
Readme.rdoc
app.rb
index.html
index_dev.html
index_jquery.html

Readme.rdoc

Template project for backbone with require.js:

This project demonstrates how to use require.js with backbone.js and then replace require.js with almond.js in production.

See the app.build.js file in public/js to see how the project is built. Note that the included require.js is currently an edge version.

To build the javascript files you can do:

node public/js/app.build.js

However I'm lazy and like to type less so there's also a rake task:

rake build

Usage:

This project comes with a basic sinatra app for serving assets. If you have ruby and bundler installed just do:
bundle install

To run the project

ruby app.rb

Then visit the following 3 urls: localhost:4567 localhost:4567/dev localhost:4567/jquery <– this file demonstrates how currently require.js will prefer the jquery loaded in the page to the one explicitly defined in the project.

Something went wrong with that request. Please try again.