Open robertcasanova opened 12 years ago
There are views in there, they're just inlined rather than using anything dynamic to process them.
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?
There's no View for "todo" in option1, maybe you forgot to push something! =)