This proposal describes how to add template support to jQuery's core library. More specifically, this proposal describes a new jQuery method called render() that allows you to render a Javascript object and Javascript array as a template using a piece of HTML code.
The purpose of this proposal is to enable plugin developers to utilize a standard way of declaring and rendering templates. It would be helpful for everyone to have a standard method declaration and rendering template:
The proposal has two main parts. The first part contains a brief survey of existing template solutions, and the second part is our proposal for how methods for declaring and rendering a template can be added to jQuery's core library.