jQuery templates uses a custom set of template tags to allow developers to control the content of a page and its display position via JavaScript code.
A developer using this plugin, takes these template tags and embeds them in the page's HTML, where the content would regularly be (inside the HTML tags).
At runtime, when the page is compiled, jQuery templates reads the HTML, and with the aid of a JavaScript object (where the content is saved) it replaces those template tags with the appropriate content.
As you can see, this can be a very dynamic way of creating Web pages, the page's frame and layout remaining the same, while the content is passed via JavaScript at every page load. Simple, fast, and extremely useful on dynamic pages where the content is not fully determined until the actual page generation.
Usage instructions, along with the full list of template tags and a few examples are included with the download package.
Requirements:
- JavaScript enabled on client side
- jQuery
Comments not found