Created
April 22, 2012 21:30
-
-
Save joncostello/2467056 to your computer and use it in GitHub Desktop.
Replace attributes with iterative object values
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
<ul class="items"> | |
<li> | |
<a class="name" href="/items/1">test1</a> | |
</li> | |
<li> | |
<a class="name" href="/items/2">test2</a> | |
</li> | |
</ul> |
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
<ul class="items"> | |
<li> | |
<a class="name" href="/items/id"></a> | |
</li> | |
</ul> |
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
{ | |
items : [ {name : 'test1', id : 1}, {name : 'test2' : id : 2} ] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment