github.com/eggjs/examples/tree/master/${appInfo.name}`,
};
config.view = {
defaultViewEngine: 'nunjucks...',
mapping: {
'.tpl': 'nunjucks',
},
};
// the return config will combines to EggAppConfig...: {
enable: true,
package: 'egg-view-nunjucks',
},
};
export default plugin;
访问链接
http://127.0.0.1...maxAge: 1000 * 60 * 60 * 24 * 365 * 10,
},
};
config.view = {
defaultViewEngine: 'nunjucks...',
mapping: {
'.tpl': 'nunjucks',
},
};
// the return config will combines to EggAppConfig