Permalink
Browse files

Merge pull request #8 from dannguyen/patch-1

Update .useLayout() in router.js for 0.7
  • Loading branch information...
2 parents 3f5d5b9 + 7599116 commit 86e0faa4cf862597743aee1b9e4fba1c7356ca30 @tbranyen tbranyen committed Nov 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 todomvc/root/app/router.js
@@ -24,7 +24,7 @@ function(app, Todo) {
var list = new Todo.List();
// Use the main layout.
- app.useLayout("main").setViews({
+ app.useLayout({ template: 'layouts/main' }).setViews({
// Attach the root content View to the layout.
"form": new Todo.Views.Form({
collection: list

0 comments on commit 86e0faa

Please sign in to comment.