Alex Rivera | Logout

Javascript - Template Engine

Asked 2012-09-10T08:40:41.187
18

Nowadays, we can find many JS templating engines like KnockOut, Mustache, Underscore, ... Can you please tell me what are the advantages of an architecture based upon theses engines ? and/or when to use them ? Is it better (maintainability, dev costs, reliability, ...) than generating all HTML from server-side ?

Is it a good architecture to expose feeds (rest service in json) and do some stuff on client side (micro templating) ?

Edit
Report

1 Answer

7

The main advantage of templates is optimization of the amount of data passed to the client it make response faster, reduces your traffic costs, and increase throughput of your servers.

answered 2012-09-10T08:46:08.683

Your Answer