github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-tmpl

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 28
    • 3
  • Source
  • Commits
  • Network (3)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Switch Branches (1)
    • master ✓
  • Switch Tags (0)
  • Branch List
Sending Request…

A templating plugin for jQuery. — Read more

  Cancel

  Cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Still pull the demo source from jquery.com. 
jeresig (author)
Thu Mar 04 21:16:59 -0800 2010
commit  9157ba7c70ee0bfeb96d805af54337bf0cf1a64a
tree    cd6d74d8d2d33b69c18a248d61032c85b8882a0c
parent  5e1e3276c098549c53d354bcf3f994ee9035a261
jquery-tmpl /
name age
history
message
file README.md Thu Mar 04 20:05:07 -0800 2010 Tweaked the README example. [jeresig]
file demo.html Thu Mar 04 20:00:13 -0800 2010 Added .append(tmpl, array) support, fixed the r... [jeresig]
file jquery.tmpl.js Thu Mar 04 20:43:14 -0800 2010 We don't need to use that buildFragment, we can... [jeresig]
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 );
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server