summaryrefslogtreecommitdiff
path: root/frontend.js
diff options
context:
space:
mode:
authorBenjamin Kiessling <mittagessen@l.unchti.me>2012-01-27 03:31:16 +0100
committerBenjamin Kiessling <mittagessen@l.unchti.me>2012-01-27 03:31:16 +0100
commit8938c907f5e15a1670e369a6f4315bda9a9b79d0 (patch)
tree3f71f7e86a6088597fc96fdd62fad3be17669138 /frontend.js
parent5ee2461cadac1a7021b73aaf8bdc87cc8f33959b (diff)
Make template engine configurable
Diffstat (limited to 'frontend.js')
-rw-r--r--frontend.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/frontend.js b/frontend.js
index 280e30e..61db0b2 100644
--- a/frontend.js
+++ b/frontend.js
@@ -9,12 +9,11 @@ exports.setModel = function(m) {
exports.start = function(config) {
var app = config.app;
- app.engine('html', cons.swig);
+ app.engine('html', cons[config.templateEngine]);
// set .html as the default extension
app.set('view engine', 'html');
app.set('views', path.join(__dirname, config.rootDir));
-
app.get('/slides/:id', function(req, res) {
slideset = req.params.id;
model.getSlides(slideset, function(err, slides) {