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
目前过滤器只能通过 imports 选项传给 art-template ,这里主要有两个问题:
imports
import
我是参考 example 里面的方式做的,不知道是不是我的方式有误,求指教~
另:我个人的想法是, art-template 应该支持动态添加过滤器,而不是必须通过 options 初始化所有的过滤器。
The text was updated successfully, but these errors were encountered:
好建议,我考虑优化这里。不降低性能损耗的同时支持运行时载入过滤器
Sorry, something went wrong.
1. 过滤器支持在运行时注入 (#4)(aui/art-template-loader#4)
13af1e4
2. 过滤器语法可以直接使用全局对象,无需特别声明。例如 `{{url | encodeURIComponent}}`
已经支持,使用请见 README.md
No branches or pull requests
目前过滤器只能通过
imports
选项传给 art-template ,这里主要有两个问题:import
语法,导致这部分代码难以维护(因为我的业务代码用了 babel+ES2015,导致没办法在初始化过滤器的代码中复用业务代码)我是参考 example 里面的方式做的,不知道是不是我的方式有误,求指教~
另:我个人的想法是, art-template 应该支持动态添加过滤器,而不是必须通过 options 初始化所有的过滤器。
The text was updated successfully, but these errors were encountered: