upgraded to express 3.x, converted jade templates, and worked out array notation for articles/exercises

This commit is contained in:
2013-01-17 16:12:44 -05:00
parent a899234e21
commit 3bab45fbad
326 changed files with 28430 additions and 5489 deletions

View File

@@ -5,11 +5,10 @@
var notLoggedIn = require('./middleware/not_logged_in');
module.exports = function(app) {
app.dynamicHelpers({
session: function(req, res) {
return req.session;
}
});
// app.use(function(req, res) {
// console.log("session " + req.session + " - " + JSON.stringify(req.session));
// res.locals.session = req.session;
// });
app.get('/session/new', notLoggedIn, function(req, res) {
res.render('session/new', {title: "Log in"});