Closed haizhilin2013 closed 7 years ago
node_modules\grace-consolidate\lib\consolidate.js(1119行)
要将
if (options.settings && options.settings.views) engine.configure(options.settings.views);
修改为:
if (options.settings && options.settings.views) engine.configure(options.settings.views, options.settings.options);
开了个分支完美支持nunjuck,https://github.com/xiongwilee/koa-grace/tree/nunjucks
Nunjucks自定义选项不起作用, 是以下这个文件缺少了配置项引起的
要将
if (options.settings && options.settings.views) engine.configure(options.settings.views);
修改为:
if (options.settings && options.settings.views) engine.configure(options.settings.views, options.settings.options);