We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to set filters of koa-swig when I use it in koa-views like this:
var views = require('koa-views'); app.use(views(__dirname + 'views', { map:{ html: 'swig' }, filters:{ getAppEnv:function(){ return env.toLowerCase(); } } }));
or like this:
var views = require('koa-views'); app.use(views(__dirname + 'views', { map:{ html: 'swig' }, options:{ filters:{ getAppEnv:function(){ return env.toLowerCase(); } } } }));
two mode both are useless...Is there any problem? how could I set filters via koa-views... thank u!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
how to set filters of koa-swig when I use it in koa-views
like this:
or like this:
two mode both are useless...Is there any problem?
how could I set filters via koa-views...
thank u!
The text was updated successfully, but these errors were encountered: