addyosmani / backbone-boilerplates

Backbone.js stack boilerplates demonstrating integration with Express, Ruby, PHP, Grails and more.
http://addyosmani.com
488 stars 177 forks source link

No view in option1 #3

Open robertcasanova opened 12 years ago

robertcasanova commented 12 years ago

There's no View for "todo" in option1, maybe you forgot to push something! =)

addyosmani commented 12 years ago

There are views in there, they're just inlined rather than using anything dynamic to process them.

robertcasanova commented 12 years ago

In app.js of option 1, the following lines:

app.get('/todo', function(req, res){ res.render('todo', {title: "MongoDB Backed TODO App"}); });

Should be replaced with something like:

app.get('/todo', function(req, res){ res.sendfile(__dirname + '/public/static.html'); });

Because no todo view is defined.

Is it right?