koajs / ejs

a koa view render middleware, support all feature of ejs
MIT License
248 stars 57 forks source link

can't cache <% include('./head.html', {foo: 'bar'}) %> #44

Closed hyj1991 closed 6 years ago

hyj1991 commented 6 years ago

can't cache <% include('./head.html', {foo: 'bar'}) %> because ejs.compile options not have params cache which developer seted:

const fn = ejs.compile(tpl, {
    filename: viewPath,
    _with: settings._with,
    compileDebug: settings.debug && settings.compileDebug,
    debug: settings.debug,
    delimiter: settings.delimiter
});
hyj1991 commented 6 years ago

https://github.com/koajs/ejs/pull/45