Our motivation for adding templating support is to make it easier to display database data when working with jQuery. For example, we want a standard jQuery method for displaying a set of product records retrieved from a database.
The proposal has two main sections. In the first section, we provide a brief review of existing templating solutions. We discuss Resig's micro-templating engine, jTemplates, PURE, and ASP.NET Ajax templates (this list of template engines, by no means, is meant to be comprehensive).
Next, we present our templating proposal. We suggest creating a new method named renderTemplate() that can either render a single JavaScript object or an array of JavaScript objects by using a fragment of HTML as a template.