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
似乎只能用var,感到很不方便…
The text was updated successfully, but these errors were encountered:
嗯,这个问题一直存在。在es6推出了模板字符串后,这问题就表现得更扎眼了,因为模板字符串中经常这么干:here is the result ${a+b},而在etpl中这样就不能用了。感觉反差太明显
here is the result ${a+b}
看了etpl的源码后发现,etpl用 ${user.name}来输出变量时,需要做一系列处理,要防止 undefined 被拼入结果,最终编译后${user.name}会变成 getVariable('user', 'name')。这也导致要实现你说的功能变得很麻烦
就看etpl的构建人如何改进了,否则的确只能使用 var
Sorry, something went wrong.
No branches or pull requests
似乎只能用var,感到很不方便…
The text was updated successfully, but these errors were encountered: