Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Clean up whitespace in README and mention that it also works with Zepto.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandunn committed Nov 29, 2011
1 parent f6b5ae6 commit 3644c17
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ http://workshops.thoughtbot.com/backbone-js-on-rails

The book contains complete instructions and in-depth coverage of the internals
of CompositeView and Swappingrouter, and an example application that shows
their usage
their usage.

### SwappingRouter

Expand All @@ -24,7 +24,7 @@ view by rendering that view into its own `el`:
if (this.currentView && this.currentView.leave) {
this.currentView.leave();
}

this.currentView = newView;
this.currentView.render();
$(this.el).empty().append(this.currentView.el);
Expand Down Expand Up @@ -74,7 +74,7 @@ maintain a back-reference at `this.parent`. This is used to reach up and call

You'll need these, but chances are you already have them in your app:

* jQuery
* jQuery or Zepto
* Underscore
* Backbone

Expand Down Expand Up @@ -131,7 +131,7 @@ First off:
In your `config/application.rb`:

``` ruby
config.middleware.use Rack::Static,
config.middleware.use Rack::Static,
:urls => ['/vendor/plugins/backbone-support/lib/assets/javascripts']
```

Expand All @@ -157,7 +157,6 @@ end
Your individual specs will then need the full root path in `require`. For
example:


``` js
requirePublic = function(path) {
require("/public/javascripts/" + path);
Expand Down

0 comments on commit 3644c17

Please sign in to comment.