Skip to content

Instantly share code, notes, and snippets.

@micahalles
Created July 11, 2011 02:41
Show Gist options
  • Save micahalles/1075240 to your computer and use it in GitHub Desktop.
Save micahalles/1075240 to your computer and use it in GitHub Desktop.
Setting Attributs
$("#my-template").expand({
name: { "@href": "http://atomicobject.com/pages/Shawn+Crowley" }
})
<div>
<span class="author">
Written by <a class="name" href="http://atomicobject.com/pages/Shawn+Crowley"/>
</span>
</div>
<div id="my-template">
<span class="author">
Written by <a class="name" href=""></a>
</span>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment