-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
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
发现一个配置bug #3
Comments
v4.9.1 已经修复 |
谢谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
感觉楼主对这个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: