Juicer 0.4.0-dev 发布,JS模板引擎
openkk 13年前
<p><a href="http://www.open-open.com/lib/view/open1335161835655.html" target="_blank">Juicer </a>0.4.0-dev 发布,性能同0.3持平略有提升,Mac Chrome v18中测试表明Juicer最快,jQueryTmpl崩溃,BaiduTemplate最慢,主页和Logo重新调整,文档中文化。解决0.3中 escape的全局污染,新增register/unregister等。</p> <p><img alt="Juicer 0.4.0-dev 发布,JS模板引擎" src="https://simg.open-open.com/show/5378e61488a6d2b7a1b5a9805231d9a3.jpg" width="460" height="346" /></p> <p>Juicer 是一个高效、轻量的前端 (Javascript) 模板引擎,效率和易用是它追求的目标。 除此之外,它还可以运行在 Node.js 环境中。</p> <p>示例模板:</p> <pre><code>{@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}</code></pre>