@@ -27,7 +27,7 @@ async function createDispatcher(options={}){
// standard http-error-pages
html: function(){
res.type('.html');
- res.send(_render(resources.template, resources.stylesheet, opt.filter(templateVars)))
+ res.send(_render(resources.template, resources.stylesheet, opt.filter(templateVars, req)))
},
// json
@@ -36,7 +36,7 @@ async function createDispatcher(options={}){
// html response
case 'html':
ctx.type = 'html';
- ctx.body = _render(resources.template, resources.stylesheet, opt.filter(templateVars));
+ ctx.body = _render(resources.template, resources.stylesheet, opt.filter(templateVars, ctx));
break;
// default: text response