Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A templating plugin for jQuery.
JavaScript
Branch: master
Pull request Compare This branch is 41 commits ahead of rdworth:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
demo.html
jquery.tmpl.autocache.js
jquery.tmpl.js
test.html

README.md

A jQuery templating plugin - created for demonstration purposes.

$("#sometmpl")
    .render( dataObject ) // Returns a LI with all the data filled in
    .appendTo("ul");

$("#sometmpl")
    .render( arrayOfDataObjects ) // Returns multiple LIs with data filled in
    .appendTo("ul");

// Appends one LI, filled with data, into the UL
$("ul").append( tmpl, dataObject );

// Appends multiple LI, filled with data, into the UL
$("ul").append( tmpl, arrayOfDataObjects );
Something went wrong with that request. Please try again.