Skip to content

Commit

Permalink
Tweaked the README example.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Mar 5, 2010
1 parent 3ce06c3 commit 28a5919
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -5,8 +5,11 @@ A jQuery templating plugin - created for demonstration purposes.
.appendTo("ul");

$("#sometmpl")
.render( arrayOfDataObjects ) // Returns two LIs with data filled in
.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 );

0 comments on commit 28a5919

Please sign in to comment.