-
Notifications
You must be signed in to change notification settings - Fork 96
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
看了下,API没有说明如何进行预编译,是暂时不支持还是将来也不支持? #39
Comments
我们觉得没必要.... |
暂时不支持。原因主要是,预编译后的代码肯定要比模板代码大,编译的代价并不高,毕竟是一次compile多次render。 如果是前端应用,对下载时间上的要求会更严格。对于后端应用,可能会需要预编译功能。所以,未来也会做。 现在来说,预编译功能暂时还没有schedule。 |
什么是预编译? |
原来没有预编译的。。。 |
我的场景是,每个页面都要复用相同的 、polyfill,amd config,因此要用到母版,暂时没找到比 etpl 更好用的模板引擎 在 nodejs 渲染模板时,想做一层缓存,避免频繁的 IO 和 compile。现在的问题是,子页面的改动确实可以发现,但是如果子页面的母版变了怎么办?因此我想到预编译,把母版编译进每个子页面,这样就不存在这个问题。 但是,etpl 不支持预编译,卡在这了 @errorrik erik,etpl 还打算维护么?维护的话,我就等等,不维护我可能转向 mustache 了... |
建议你转到 |
@otakustay ok |
RT
The text was updated successfully, but these errors were encountered: