summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kiessling <mittagessen@l.unchti.me>2012-02-12 19:16:58 +0100
committerBenjamin Kiessling <mittagessen@l.unchti.me>2012-02-12 19:16:58 +0100
commit8e5a36d32ab3cb89963689913d26f1083524ebbc (patch)
tree0249db554065bd21060e23544333a0b7e94d4f31
parente26711cf2b13c2820f4b2bf49d358d28a032f4bc (diff)
Unescape some commonly used characters
-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);