Skip to content

Commit

Permalink
correct readme markup
Browse files Browse the repository at this point in the history
  • Loading branch information
adamscybot committed Jan 4, 2012
1 parent 2e143ee commit 86fab80
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Expand Up @@ -13,17 +13,17 @@ This software assumes you are using the [AMD optimised version of backbone](http
1. Add `backbone_tastypie` to your `INSTALLED_APPS` setting.
2. Ensure that your main.js knows the paths of backbone (the AMD optimised version!) and backbone-tastypie. For example:

`require.config({
paths: {
"backbone": "/static/js/backbone",
"backbone-tastypie": "/static/js/backbone-tastypie"
}
});`
require.config({
paths: {
"backbone": "/static/js/backbone",
"backbone-tastypie": "/static/js/backbone-tastypie"
}
});`

3. When you need backbone-tastypie simply call:

`require(["backbone-tastypie"],function(Backbone) {
// This code loads when backbone-tastypie and all of its dependencies are loaded.
// The local backbone variable is the modified backbone-tastypie one.
// If you want vinalla backbone, you can just change ["backbone-tastypie"] to ["backbone"]!
})`
require(["backbone-tastypie"],function(Backbone) {
// This code loads when backbone-tastypie and all of its dependencies are loaded.
// The local backbone variable is the modified backbone-tastypie one.
// If you want vinalla backbone, you can just change ["backbone-tastypie"] to ["backbone"]!
})

0 comments on commit 86fab80

Please sign in to comment.