Pass on the req object to eejs hooks

This commit is contained in:
Marcel Klehr 2012-11-01 13:44:59 +01:00
parent 059f6d280e
commit ed2faa68c9
1 changed files with 2 additions and 2 deletions

View File

@ -34,13 +34,13 @@ exports.expressCreateServer = function (hook_name, args, cb) {
//serve pad.html under /p
args.app.get('/p/:pad', function(req, res, next)
{
res.send(eejs.require("ep_etherpad-lite/templates/pad.html"));
res.send(eejs.require("ep_etherpad-lite/templates/pad.html", {req: req}));
});
//serve timeslider.html under /p/$padname/timeslider
args.app.get('/p/:pad/timeslider', function(req, res, next)
{
res.send(eejs.require("ep_etherpad-lite/templates/timeslider.html"));
res.send(eejs.require("ep_etherpad-lite/templates/timeslider.html", {req: req}));
});
}