Skip to content

Commit

Permalink
Pushing the QuietWrite.com example.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Jan 19, 2011
1 parent 06a1506 commit 0c03331
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
Binary file added docs/images/quietwrite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 28 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@
border: 4px solid #bbb; border-top: 0; border-bottom: 0;
margin: 0px 0 30px;
}
img.example_image {
margin: 0px auto 30px;
}
</style>
</head>
<body>
Expand Down Expand Up @@ -1795,7 +1798,7 @@ <h2 id="examples">Examples</h2>

<div style="text-align: center;">
<a href="examples/todos/index.html">
<img src="docs/images/todos.png" alt="Todos" style="margin: 10px auto;" />
<img src="docs/images/todos.png" alt="Todos" class="example_image" />
</a>
</div>

Expand All @@ -1806,7 +1809,7 @@ <h2 id="examples">Examples</h2>
</p>

<div style="text-align: center;">
<img src="docs/images/dc-workspace.png" alt="DocumentCloud Workspace" style="margin: 10px auto;" />
<img src="docs/images/dc-workspace.png" alt="DocumentCloud Workspace" class="example_image" />
</div>

<p>
Expand All @@ -1820,7 +1823,21 @@ <h2 id="examples">Examples</h2>

<div style="text-align: center;">
<a href="http://bennolan.com/science/backbone-mobile/">
<img src="docs/images/backbone-mobile.png" alt="Backbone Mobile" style="margin: 10px auto;" />
<img src="docs/images/backbone-mobile.png" alt="Backbone Mobile" class="example_image" />
</a>
</div>

<p>
<a href="http://www.twitter.com/jamesjyu">James Yu</a> used Backbone.js to
create <a href="http://www.quietwrite.com/">QuietWrite</a>, an app
that gives writers a clean and quiet interface to concentrate on the text itself.
It also works great on the iPad. The editor relies on
Backbone to persist document data to the server.
</p>

<div style="text-align: center;">
<a href="http://www.quietwrite.com/">
<img src="docs/images/quietwrite.png" alt="QuietWrite" class="example_image" />
</a>
</div>

Expand Down Expand Up @@ -1880,12 +1897,12 @@ <h2 id="faq">F.A.Q.</h2>
<b class="header">Loading Bootstrapped Models</b>
<br />
When your app first loads, it's common to have a set of initial models that
you know you're going to need, in order to render the page. Instead of
you know you're going to need, in order to render the page. Instead of
firing an extra AJAX request to <a href="#Collection-fetch">fetch</a> them,
a nicer pattern is to have their data already bootstrapped into the page.
You can then use <a href="#Collection-refresh">refresh</a> to populate your
collections with the initial data. At DocumentCloud, in the
<a href="http://en.wikipedia.org/wiki/ERuby">ERB</a> template for the
collections with the initial data. At DocumentCloud, in the
<a href="http://en.wikipedia.org/wiki/ERuby">ERB</a> template for the
workspace, we do something along these lines:
</p>

Expand All @@ -1899,16 +1916,16 @@ <h2 id="faq">F.A.Q.</h2>
<p id="FAQ-mvc">
<b class="header">How does Backbone relate to "traditional" MVC?</b>
<br />
Different implementations of the
Different implementations of the
<a href="http://en.wikipedia.org/wiki/Model–View–Controller">Model-View-Controller</a>
pattern tend to disagree about the definition of a controller. If it helps any, in
Backbone, the <a href="#View">View</a> class can also be thought of as a
pattern tend to disagree about the definition of a controller. If it helps any, in
Backbone, the <a href="#View">View</a> class can also be thought of as a
kind of controller, dispatching events that originate from the UI, with
the HTML template serving as the true view. We call it a View because it
represents a logical chunk of UI, responsible for the contents of a single
represents a logical chunk of UI, responsible for the contents of a single
DOM element.
</p>

<p id="FAQ-this">
<b class="header">Binding "this"</b>
<br />
Expand Down

0 comments on commit 0c03331

Please sign in to comment.