Comments (9)
thx!
1* 子模板嵌套后续我会加上。
2* 性能上在 核心实现
上其实与artTemplate是持平的(在art发布之前,跟其作者糖饼就模板引擎问题也一直有沟通交流),有些包装Juicer认为是默认配置(优先级较高的,这些外层实现跟art有很大不同),所以包装后的整体性能对比我觉得可能不能完全反映整个引擎的性能状况,我也会后续重新做些调研把整体的性能提升到极致。
再次感谢对juicer的关注和支持,juicer会继续完善继续努力。
from juicer.
祝Juicer越来越好~~~
from juicer.
现在支持子模板嵌套了吗?
from juicer.
@newtonniu @xingyeqishi 10月16号发布一版 (0.6.2),修复几个issue,且增加子模板嵌套
功能。
语法: {@include sub-tpl, data}
,感谢关注啊~
from juicer.
@newtonniu @xingyeqishi v0.6.2-stable released. 已经加入子模板嵌套
的支持。
from juicer.
@PaulGuo 恩,现在就方便多了,不过不知道是不是功能支持的太多了,好像现在渲染速度没有引擎速度比赛中0.4.0-dev这个版本速度快了,0.4.0-de渲染150+ms,现在大概要300+ms(chrome中测试)!
from juicer.
@newtonniu 是有这个情况的,从0.5.6开始,each
支持Object
类型的遍历就导致速度比赛中耗时增加。因为for
和for in
相比的速度差异就是0.5.6之前和之后速度差异的原因。但是权衡易用性,还是保留each
支持Array/Object
两种类型的遍历。
from juicer.
@PaulGuo 恩,能否做个判断Array/Object
分别调用不同的遍历方式,这样可能效率会好些。
from juicer.
@newtonniu Thx, 这个我回头加上测下试试。
from juicer.
Related Issues (20)
- 怎么获得循环的数据的总个数 HOT 2
- 子模板不支持each循环遍历?
- 模版中自定义的数字展示形式
- 带参数的自定函数的使用说明存在错误
- 支持webpack啦,juicer-loader
- 如果在jsp中是用的话,${} 会被当做el表达式优先编译 HOT 1
- 注册函数时的参数说明不确切
- {@each array|function as item} 是否支持这样的写法 想要对需要遍历的数组在开始遍历之前做一个简单的处理
- 官方文档中的一个示例错误
- 特殊符号# 等怎么处理? HOT 1
- 判断 {@if} ... {@else if} ... {@else} ... {@/if}
- 用juicer渲染数据后 不能设置自定义属性
- 怎么获取字典的动态key的值??
- 字段名包含短横线时,无法正确解析
- 无法渲染数据,而是直接输出了源码
- 域名过期了 http://juicer.name HOT 2
- 庆祝退休
- 需要生成${,请问该怎么写? HOT 1
- 多重嵌套的if语句不支持吗
- ReDoS vulnerability in juicer.js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from juicer.