From 8e5a36d32ab3cb89963689913d26f1083524ebbc Mon Sep 17 00:00:00 2001 From: Benjamin Kiessling Date: Sun, 12 Feb 2012 19:16:58 +0100 Subject: Unescape some commonly used characters --- frontend.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend.js b/frontend.js index 61db0b2..e325cd2 100644 --- a/frontend.js +++ b/frontend.js @@ -13,6 +13,7 @@ exports.start = function(config) { // set .html as the default extension app.set('view engine', 'html'); + app.set('view options', { layout: false }); app.set('views', path.join(__dirname, config.rootDir)); app.get('/slides/:id', function(req, res) { slideset = req.params.id; @@ -46,7 +47,10 @@ exports.start = function(config) { for(var evF in slides['events'][date][ev]) { if(!slides['events'][date][ev].hasOwnProperty(evF)) { continue; } if(typeof slides['events'][date][ev][evF] == 'string') { - eventObj[evF] = slides['events'][date][ev][evF]; + eventObj[evF] = + slides['events'][date][ev][evF] + .replace(/\\"/g, '"') + .replace(/\\,/g, ','); } } eventAr[eventAr.length - 1]['events'].push(eventObj); -- cgit v1.2.1