From c912443a1ec17821d6c67447a70246d493999deb Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Fri, 10 Feb 2012 04:02:57 +0800 Subject: [PATCH] Add a link to the official Backbone docs in the bootstrapping pattern. --- README.md | 4 ++++ doc/index.html | 12 +++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fe2baf0..7f45acf 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ __The problem:__ Your application needs models to be available on page load. __Solution:__ Bootstrap collections and models by creating collections in an inline ` ``` +[bb.bootstrap]: http://documentcloud.github.com/backbone/#FAQ-bootstrap View patterns ============= diff --git a/doc/index.html b/doc/index.html index e3f4a31..9cb18b8 100644 --- a/doc/index.html +++ b/doc/index.html @@ -24,6 +24,9 @@

Solution: Bootstrap collections and models by creating collections in an inline <script> block.

+

This is mentioned in the official Backbone documentation under the Loading +bootstrapped models section.

+

Define collection data

  <body>
     ...
@@ -598,7 +601,9 @@
 

If you adopt an AMD library, there will be no need to use namespaces for your JavaScript classes.

-

Fr more information on RequireJS, AMD, and using it on your Backbone project, +
+ +

For more information on RequireJS, AMD, and using it on your Backbone project, see:

-
- -

File naming

+

File naming

For applications that do not use Asynchronous Module Definition-style organization, there always seem to have 3 basic JavaScript files.