Skip to content

Instantly share code, notes, and snippets.

@micahalles
Created July 11, 2011 02:55
Show Gist options
  • Save micahalles/1075251 to your computer and use it in GitHub Desktop.
Save micahalles/1075251 to your computer and use it in GitHub Desktop.
Arrays
$("#my-template").expand({
content: "Step 1, light the grill. Step 2...",
comments: ["Sounds delicious!", "What next?!?"]
})
<div>
<span class="content">Step 1, light the grill. Step 2...</span>
<div class="comments">
<div class="comment">Sounds delicious!</div>
<div class="comment">What next?!?</div>
</div>
</div>
<div id="my-template">
<span class="content"></span>
<div class="comments">
<div class="comment"></div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment