Skip to content

The original official jQuery Templates plugin. This project was maintained by the jQuery team as an official jQuery plugin. It is no longer in active development, and will be superseded by JsRender.

Notifications You must be signed in to change notification settings

zerotung/jquery-tmpl

Repository files navigation

A jQuery templating plugin - created for demonstration purposes.

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

$("#sometmpl")
    .tmpl( 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 );

About

The original official jQuery Templates plugin. This project was maintained by the jQuery team as an official jQuery plugin. It is no longer in active development, and will be superseded by JsRender.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 94.4%
  • CSS 4.7%
  • HTML 0.9%