Created
July 11, 2011 03:12
-
-
Save micahalles/1075268 to your computer and use it in GitHub Desktop.
Calling Functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#my-template").expand({ | |
author: { "addClass()": "awesome" }, | |
"$input[name=comment]": { "val()": "nice post!" } | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<span class="author awesome"></span> | |
<input type="text" name="comment" value="nice post!" /> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="my-template"> | |
<span class="author"></span> | |
<input type="text" name="comment" /> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment