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.
However I'm lazy and like to type less so there's also a rake task:
This project comes with a basic sinatra app for serving assets. If you have ruby and bundler installed just do:
To run the project
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.