All Swig options are not available and swig isn't being exposed.
kevinmartin opened this issue · 1 comments
kevinmartin commented
Hi,
I am trying to set some defaults to Swig, but I'm not allowed to. Looking at the code, swig.setDefaults()
is called on a limited/fixed set of options.
I do see that you try to expose swig via exports.swig
, but require('koa-swig').swig
is undefined. I think you need to do module.exports.swig = swig
instead.
Thanks.
haoxins commented
yes, line 18
exports = module.exports = renderer;
will work.