Skip to content
This repository
Browse code

Updating index and builds with tweaks to new content.

  • Loading branch information...
commit 50be9f07d30bf523749e470bd94865ad8cf7648d 1 parent c92b835
Addy Osmani authored August 24, 2012
BIN  backbone-fundamentals.epub
Binary file not shown
1,401  backbone-fundamentals.rtf
1083 additions, 318 deletions not shown
1  build/build.sh
... ...
@@ -1,5 +1,6 @@
1 1
 
2 2
 # A little build script for compiling the HTML, ePub and RTF versions of the book.
  3
+# use with sh build.sh in this directory
3 4
 
4 5
 #pandoc is the path to the pandoc executable. It can either simply be 'pandoc', 
5 6
 #or if you require a custom path just replace it with that path. 
1,298  index.html
987 additions, 311 deletions not shown
57  index.md
Source Rendered
@@ -22,14 +22,15 @@ I hope you find this book helpful!
22 22
     * [Collections](#thebasics-collections)
23 23
     * [Routers](#thebasics-routers)
24 24
     * [Namespacing](#thebasics-namespacing)
25  
-    * [Common Questions & Answers](#thebasics-additional-tips)
26  
-       * Rendering Sub-Views
27  
-       * Managing Nested Views
28  
-       * View Inheritance
29  
-       * Views Triggering Other Views
30  
-       * Child Views Rendering Parent Views
31  
-       * Parent And Child View Disposal
32  
-       * Appending Views
  25
+
  26
+* ####[Common Questions & Answers](#thebasics-additional-tips)
  27
+    * Rendering Sub-Views
  28
+    * Managing Nested Views
  29
+    * View Inheritance
  30
+    * Views Triggering Other Views
  31
+    * Child Views Rendering Parent Views
  32
+    * Parent And Child View Disposal
  33
+    * Appending Views
33 34
 
34 35
 * ####[Backbone Boilerplate & Grunt BBB](#backboneboilerplate)
35 36
 
@@ -58,21 +59,21 @@ I hope you find this book helpful!
58 59
           * [Testing Collections](#testing-jasmine-collections)
59 60
           * [Testing Views](#testing-jasmine-views)
60 61
     * [Unit Testing Backbone Applications With QUnit And SinonJS](#unittestingqunit)
61  
-      * Introduction
62  
-      * QUnit
63  
-        * Assertions
64  
-        * Adding structure to assertions
65  
-        * Assertion examples
66  
-        * Fixtures
67  
-        * Asynchronous code
68  
-      * SinonJS
69  
-        * Stubs
70  
-        * Mocks
71  
-      * Practical
72  
-        * Testing Models
73  
-        * Testing Collections
74  
-        * Testing Views
75  
-        * Testing Events
  62
+        * Introduction
  63
+        * QUnit
  64
+          * Assertions
  65
+          * Adding structure to assertions
  66
+          * Assertion examples
  67
+          * Fixtures
  68
+          * Asynchronous code
  69
+        * SinonJS
  70
+          * Stubs
  71
+          * Mocks
  72
+        * Practical
  73
+          * Testing Models
  74
+          * Testing Collections
  75
+          * Testing Views
  76
+          * Testing Events
76 77
 
77 78
 
78 79
 
@@ -1559,7 +1560,7 @@ Generally speaking, more developers opt for the first solution as:
1559 1560
 
1560 1561
 (Thanks to [Lukas](http://stackoverflow.com/questions/9271507/how-to-render-and-append-sub-views-in-backbone-js) for this tip).
1561 1562
 
1562  
-## What is a straight-forward way to manage Nested Views?
  1563
+#### What is a straight-forward way to manage Nested Views?
1563 1564
 
1564 1565
 In order to reach attributes on related models, the models involved need to have some prior knowledge about which models this refers to. Backbone.js doesn't implicitly handle relations or nesting, meaning it's up to us to ensure models have a knowledge of each other.
1565 1566
 
@@ -1647,7 +1648,7 @@ There is more information about this technique available on [GitHub](https://git
1647 1648
 
1648 1649
 (Thanks to [Jens Alm](http://stackoverflow.com/users/100952/jens-alm) and [Artem Oboturov](http://stackoverflow.com/users/801466/artem-oboturov) for these tips)
1649 1650
 
1650  
-### How would one go about writing Views which inherit from other Views?
  1651
+#### How would one go about writing Views which inherit from other Views?
1651 1652
 
1652 1653
 Underscore.js provides an `_.extend()` method that gives us the ability to both write mixins for Views and inherit from Views quite easily. 
1653 1654
 
@@ -1879,9 +1880,7 @@ Backbone can be used for building both trivial and complex applications as demon
1879 1880
 At the end of the day, the key to building large applications is not to build large applications in the first place. If you find that Backbone doesn't cut it for your requirements, I strongly recommend checking out JavaScriptMVC, SproutCore, or Ember.js as they offer a little more than Backbone out of the box. Dojo and Dojo Mobile may also be of interest as these have also been used to build significantly complex apps by other developers.
1880 1881
 
1881 1882
 
1882  
-## <a name="backboneboilerplate">Backbone Boilerplate</a>
1883  
-
1884  
-# Backbone Boilerplate And Grunt-BBB
  1883
+# <a name="backboneboilerplate">Backbone Boilerplate And Grunt-BBB</a> 
1885 1884
 
1886 1885
 [Backbone Boilerplate](https://github.com/tbranyen/backbone-boilerplate/) is an excellent set of best practices and utilities for building Backbone.js applications, created by Backbone contributor [Tim Branyen](https://github.com/tbranyen). He organized this boilerplate out of the gotchas, pitfalls and common tasks he ran into over a year of heavily using Backbone to build apps at Bocoup. This includes apps such [StartupDataTrends.com](http://startupdatatrends).
1887 1886
 
@@ -2217,7 +2216,7 @@ function($, _, Backbone) {
2217 2216
 });
2218 2217
 ```
2219 2218
 
2220  
-### Creating Backbone Boilerplate modules
  2219
+### Creating Backbone Boilerplate Modules
2221 2220
 
2222 2221
 Not to be confused with simply being just an AMD module, a Backbone Boilerplate `module` is a script composed of a:
2223 2222
 

0 notes on commit 50be9f0

Please sign in to comment.
Something went wrong with that request. Please try again.