summaryrefslogtreecommitdiff
path: root/frontend.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend.js')
-rw-r--r--frontend.js6
1 files changed, 5 insertions, 1 deletions
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);