Difference between revisions of "JavaScript templating"
Karl Jones (Talk | contribs) |
Karl Jones (Talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
Popular JavaScript templating libraries are [[AngularJS]], [[Backbone.js]], [[Ember.js]], [[Handlebars.js]], [[Vue.js]], [[Mustache.js]], and [[Dust.js]]. | Popular JavaScript templating libraries are [[AngularJS]], [[Backbone.js]], [[Ember.js]], [[Handlebars.js]], [[Vue.js]], [[Mustache.js]], and [[Dust.js]]. | ||
− | A frequent practice is to use double curly brackets (i.e. {{key}}) to call values of the given key from data files, often JSON objects. | + | A frequent practice is to use double curly brackets (i.e. <nowiki>{{key}}</nowiki>) to call values of the given key from data files, often JSON objects. |
− | Templating becomes useful when the information distributed may change, is too large to be maintained in various HTML pages by available human resources and not large enough to require heavier server-side templating. | + | Templating becomes useful when the information distributed may change, is too large to be maintained in various HTML pages by available human resources and not large enough to require heavier [[server-side]] templating. |
== See also == | == See also == |
Latest revision as of 14:09, 28 October 2016
JavaScript templating refers to the client side data binding method implemented with the JavaScript language.
Description
This approach became popular thanks to JavaScript's increased use, its increase in client processing capabilities, and the trend to outsource computations to the client's web browser.
Popular JavaScript templating libraries are AngularJS, Backbone.js, Ember.js, Handlebars.js, Vue.js, Mustache.js, and Dust.js.
A frequent practice is to use double curly brackets (i.e. {{key}}) to call values of the given key from data files, often JSON objects.
Templating becomes useful when the information distributed may change, is too large to be maintained in various HTML pages by available human resources and not large enough to require heavier server-side templating.
See also
External links
- JavaScript templating @ Wikipedia