You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{@each list as item,index}
{@if index===3}
the index is 3, the value is ${item.prop}
{@else if index === 4}
the index is 4, the value is ${item.prop}
{@else}
the index is not 3, the value is ${item.prop}
{@/if}
{@/each}
{@each i in range(5, 10)}
${i}; //输出 5;6;7;8;9;
{@/each}
Bad news is they do like to document the stuffs in Chinese,
ArtTemplate
From Tercent
Introduction(Chinese): http://cdc.tencent.com/?p=5723
Home page(Chinese): http://aui.github.io/artTemplate/
GitHub repo(Chinese Readme): https://github.com/aui/artTemplate
Some demos copied:
{{include 'template_name'}}
{{time | dateFormat:'yyyy-MM-dd hh:mm:ss'}}
An image from 2012.6 on performance:
Juicer
From Taobao
Home page(Chinese): http://juicer.name/
Docs(English): http://juicer.name/docs/docs.html
Introduction(Chinese): http://ued.taobao.org/blog/2012/04/juicer-一个javascript模板引擎的实现和优化/
GitHub repo(Chinese): https://github.com/PaulGuo/Juicer/
An image from 2012.4 on performance:
Some demos:
The text was updated successfully, but these errors were encountered: