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
感觉楼主对这个express模块不是很用心啊
template.defaults.imports是个对象并且包含两个方法 如果定义了view options 的imports 那么引擎就报错了
我改了如下后正常了,不知道是不是有没考虑到的,希望楼主修正,最近给同时介绍了你的模板引擎,大家都很是喜欢
if (data.settings && data.settings['view options']) { if (data.settings['view options'].imports) { Object.assign(options.imports,data.settings['view options'].imports); delete data.settings['view options'].imports; } options = options.$extend(data.settings['view options']);
The text was updated successfully, but these errors were encountered:
v4.9.1 已经修复
Sorry, something went wrong.
谢谢
No branches or pull requests
感觉楼主对这个express模块不是很用心啊
template.defaults.imports是个对象并且包含两个方法
如果定义了view options 的imports 那么引擎就报错了
我改了如下后正常了,不知道是不是有没考虑到的,希望楼主修正,最近给同时介绍了你的模板引擎,大家都很是喜欢
if (data.settings && data.settings['view options']) {
if (data.settings['view options'].imports) {
Object.assign(options.imports,data.settings['view options'].imports);
delete data.settings['view options'].imports;
}
options = options.$extend(data.settings['view options']);
The text was updated successfully, but these errors were encountered: