mikeric/rivets — pull request #191 by dashkb (2013-07-16 22:23:33+00:00)
Title: Support binding to top level keys

So I noticed this right away and wanted to fix it:

HTML
```html

```

Coffee/jQ
```coffee
model = {name: '@dashkb'}
rivets.bind ($ '#broken'), model
rivets.bind ($ '#works'), model
rivets.bind ($ '#also-works'), model: model
```

I am not sure how opinionated you want Rivets to be but seems to me all of the above cases should work.

Also the spec might belong someplace else; but I wanted to stick with your "do everything in the before hook" style.