简体   繁体   中英

Good Templating engine to be used with jquery

what are the good alternatives to jquery.tmpl now that jquery team has halted it development. It will now be coordinated by the jQuery UI team, as it will be a dependency of the upcoming jQuery UI Grid. But since grid is still far away in future which engine can i use. My backed is Cakephp

http://blog.jquery.it/2011/04/16/official-plugins-a-change-in-the-roadmap/

PS: MOst questions on this topic are outdated hence i asked this question. So as of 2011 which one should i go for.

One of the most commonly-used Javascript templating engines is mustache.js .

A simpler alternative is contained as part of underscore.js .

From my experience this is the best

http://handlebarsjs.com/

Revisiting this question in 2017, it looks like JsRender and JsViews have emerged as the current official implementation of templating within the jQuery ecosystem (whilst not necessarily requiring jQuery):

JsRender is a light-weight but powerful templating engine, highly extensible, and optimized for high-performance rendering, without DOM dependency. It is designed for use in the browser or on Node.js, with or without jQuery.

JsRender and JsViews together provide the next-generation implementation of the official jQuery plugins JQuery Templates, and JQuery Data Link -- and supersede those libraries.

- JsRender GitHub Readme

Official Site: http://www.jsviews.com/

GitHub (JsRender): https://github.com/BorisMoore/jsrender

GitHub (JsViews): https://github.com/BorisMoore/jsviews

I recommend EJS .

You could also look at :

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM