Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

correct readme markup

  • Loading branch information...
commit 86fab80e81adcb3701529a9050a6fa81b760ab2b 1 parent 2e143ee
@adamscybot adamscybot authored
Showing with 11 additions and 11 deletions.
  1. +11 −11 README.md
View
22 README.md
@@ -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"]!
+ })
Please sign in to comment.
Something went wrong with that request. Please try again.