另外也有一個網址Template-Engine-Chooser列出了幾個選擇樣版的常見問題,透過這些問題他會給你一些你可參考的樣版語言有哪些xd
樣版的參考
jquery template
The original official jQuery Templates plugin. This project was maintained by the jQuery team as an official jQuery plugin. It is no longer in active development, and will be superseded by JsRender.
JS Render
A lightweight but powerful templating engine, highly extensible, without DOM or jQuery dependency.
handlebars.js
Handlebars provides the power necessary to let you build semantic templates effectively with no frustration. Mustache templates are compatible with Handlebars, so you can take a Mustache template, import it into Handlebars, and start taking advantage of the extra Handlebars features.
hogan.js
A compiler for the Mustache templating languageMustache.js
Minimal templating with {{mustaches}} in JavaScriptPure.js
Simple and ultra-fast templating tool to generate HTML from JSON data Keep your HTML clean of any logic Using JSON and Javascript only Works standalone or with dojo, DomAssistant, Ext JS, jQuery, Mootools, Prototype, Sizzle and SlyDust.js
linkedin使用的樣版,還有說明為何要使用此樣版。- Leaving JSPs in the dust: moving LinkedIn to dust.js client-side templates
- The client-side templating throwdown: mustache, handlebars, dust.js, and more
沒有留言:
張貼留言
留個話吧:)