Answer the question
In order to leave comments, you need to log in
Which JS templating engine to choose?
Hello. I re-read almost all the topics of this topic on the toaster, and could not find my specific case.
The question is: which template engine to choose for a bundle of native JS, JQuery + template engine.
In my system, almost all content is obtained by AJAX, so after receiving the data, I would like to transfer them to the template, form HTML (90% are tables) and insert jquery into the DOM.
What template engine would you recommend? (I would like something similar to Smarty in PHP (purely according to the principle of operation)) Or do you need to radically change the scheme of work?
Answer the question
In order to leave comments, you need to log in
Here are 2 of the best templating engines:
- Handlebars.js
- Dust.js
Choose any. Personally, I am for Handlebars.
You can try Angular Light, example , works without jQuery, weight ~15kb (gzipped).
As a profit - a differentiated change in the DOM (it does not change the entire DOM like regular template engines, but the necessary elements), it works quickly, you can make large applications.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question