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

在模板中使用 <%include('./test', {labe: '这里不能用英文括号'})%> 有问题 #14

Closed
ghost opened this issue Oct 30, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 30, 2013

如题, include 传数据进去时,如果里面使用了英文括号,编译就会出错。

** 使用 tmodjs 最新版本。

@aui
Copy link
Owner

aui commented Oct 30, 2013

确认这个问题存在,正在修复中。临时解决方案:避免在include中定义对象,可以使用变量传入。

另外,不建议在模板中定义新的对象,因为这些会让模板变可读性变差,执行效率也会受到影响。

@aui
Copy link
Owner

aui commented Oct 30, 2013

已经修复,请更新 tmodjs

@aui aui closed this as completed Oct 30, 2013
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

1 participant