A
A
Alexander T.2015-11-03 17:34:08
JavaScript
Alexander T., 2015-11-03 17:34:08

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

3 answer(s)
D
Denis Ineshin, 2015-11-03
@TheManFromHarlem

Here are 2 of the best templating engines:
- Handlebars.js
- Dust.js
Choose any. Personally, I am for Handlebars.

H
helloris, 2015-11-03
@helloris

You can choose with this Template-Engine-Chooser service!

L
lega, 2015-11-04
@lega

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 question

Ask a Question

731 491 924 answers to any question