Open ralyodio opened 11 years ago
var consolidate = require('consolidate'), swig = require('swig'); app.set('view engine', 'html'); app.set('views', __dirname + '/views'); app.engine('.html', consolidate.swig); app.get('/test', function(req, res) { res.render('two'); }); /* Tell swig where to look for templates when one extends another. */ swig.init({ root: __dirname + '/views' });