Juicer 0.4.0-dev 发布,性能同0.3持平略有提升,Mac Chrome v18中测试表明Juicer最快,jQueryTmpl崩溃,BaiduTemplate最慢,主页和Logo重新调整,文档中文化。解决0.3中escape的全局污染,新增register/unregister等。
Juicer 是一个高效、轻量的前端 (Javascript) 模板引擎,效率和易用是它追求的目标。 除此之外,它还可以运行在 Node.js 环境中。
示例模板:
{@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}
Juicer 的下载地址:请点这里
