Skip to content
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

Closed
hunterlord opened this issue May 10, 2017 · 2 comments
Closed

发现一个配置bug #3

hunterlord opened this issue May 10, 2017 · 2 comments

Comments

@hunterlord
Copy link

感觉楼主对这个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']);

@aui
Copy link
Owner

aui commented May 11, 2017

v4.9.1 已经修复

@hunterlord
Copy link
Author

谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants