Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

No view in option1 #3

robertcasanova opened this Issue Feb 11, 2012 · 2 comments


None yet
2 participants

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


addyosmani commented Feb 13, 2012

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

@addyosmani addyosmani closed this Feb 13, 2012

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?

@addyosmani addyosmani reopened this Apr 30, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment