Nice template to use with jquery

what are the good alternatives to jquery.tmpl now that the jquery team has stopped it. Now it will be coordinated by the jQuery UI team, as this will be a dependency of the upcoming jQuery UI grid. But since the grid is still far in the future, which engine can I use. My support is Cakephp

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

PS: Most of the questions on this topic are out of date, so I asked this question. So from 2011, which I have to go for.

+4
source share
4 answers

One of the most commonly used templates for Javascript templates is mustache.js .

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

+5
source

I recommend EJS .

You can also see:

0
source

From my experience this is the best

http://handlebarsjs.com/

0
source

Repeating this question in 2017, it seems that JsRender and JsViews appeared as the official implementation of templates in the jQuery ecosystem (although not necessarily requiring jQuery):

JsRender is a lightweight but powerful template engine that is highly extensible and optimized for high-performance rendering, without depending on the DOM. It is intended for use in a browser or in Node.js, with or without jQuery.

JsRender and JsViews together provide a new generation of official JQuery JQuery Templates and JQuery Data Link plugins - and replace these libraries.

- JsRender GitHub Readme

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

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

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

0
source

Source: https://habr.com/ru/post/1387325/


All Articles