Skip to content

Commit

Permalink
Add a link to the official Backbone docs in the bootstrapping pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Feb 9, 2012
1 parent 7151362 commit c912443
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -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 `<script>` block.

This is mentioned in the official Backbone documentation under the [Loading
bootstrapped models][bb.bootstrap] section.

### Define collection data

Define your collection data in an inline script in the HTML file.
Expand Down Expand Up @@ -87,6 +90,7 @@ collection of your server-side models.
</script>
```
[bb.bootstrap]: http://documentcloud.github.com/backbone/#FAQ-bootstrap
View patterns
=============
Expand Down
12 changes: 7 additions & 5 deletions doc/index.html
Expand Up @@ -24,6 +24,9 @@
<p><strong>Solution:</strong> Bootstrap collections and models by creating collections in an
inline <code>&lt;script&gt;</code> block.</p>

<p>This is mentioned in the official Backbone documentation under the <a href="http://documentcloud.github.com/backbone/#FAQ-bootstrap">Loading
bootstrapped models</a> section.</p>

<section class=" h3 define_collection_data"><h3 id="define_collection_data">Define collection data</h3>
<pre class=" lang- prettyprint right"><code class="html"> &lt;body&gt;
...
Expand Down Expand Up @@ -598,18 +601,17 @@
<p>If you adopt an AMD library, there will be no need to use namespaces for your
JavaScript classes.</p>

<p>Fr more information on RequireJS, AMD, and using it on your Backbone project,
<br class="post-pre">

<p class=" after-pre">For more information on RequireJS, AMD, and using it on your Backbone project,
see:</p>

<ul>
<li>
<a href="http://backbonetutorials.com/organizing-backbone-using-modules/">Organizing Backbone using Modules</a> (via Backbonetutorials.com)</li>
<li>
<a href="http://requirejs.org">RequireJS</a>'s official site</li>
</ul>
<br class="post-pre">

</section><section class=" after-pre h2 file_naming"><h2 id="file_naming" class=" after-pre">File naming</h2>
</ul></section><section class=" h2 file_naming"><h2 id="file_naming">File naming</h2>

<p>For applications that do <em>not</em> use <a href="http://requirejs.org/docs/whyamd.html">Asynchronous Module Definition</a>-style
organization, there always seem to have 3 basic JavaScript files.</p>
Expand Down

0 comments on commit c912443

Please sign in to comment.