jQuery tmpl

Component ID

1302336

Component name

jQuery tmpl

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Adds the latest jQuery tmpl library to a page and allows a simple method of making templates available on a page.

Including jQuery tmpl on a page:
jquery_tmpl_include_library()

Adding a template to a page:
jquery_tmpl_add_template($name, $string, $is_file = true)

Having added a template to a page, templates are available to use like so:

jquery_tmpl_add_template('my_template', 'templates/my_template.tpl');
...
$.tmpl('my_template', some_data)