Created
February 18, 2012 01:17
-
-
Save heapwolf/1856712 to your computer and use it in GitHub Desktop.
Plates
This file contains hidden or 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
data = [ { _id: 'first', | |
name: 'My first post', | |
title: 'first', | |
content: 'This is my first post', | |
ctime: 1329501275682, | |
mtime: 1329501275682, | |
resource: 'Post', | |
_rev: '1-c045632b8020ed83d84210f2bfe8eac5' }, | |
{ _id: 'second', | |
name: 'My second post', | |
title: 'second', | |
content: 'This is my second post', | |
ctime: 1329501275691, | |
mtime: 1329501275691, | |
resource: 'Post', | |
_rev: '1-dfb6794533ecd5141d273cb46d4d0b69' }, | |
{ _id: 'third', | |
name: 'My third post', | |
title: 'third', | |
content: 'This is my third post', | |
ctime: 1329501275692, | |
mtime: 1329501275692, | |
resource: 'Post', | |
_rev: '1-9932ceaa200692ceef46da96c9c9134c' } ]; | |
html = " | |
<ul class="posts"> | |
<li class="name"></li> | |
<li class="title"></li> | |
<li class="content"></li> | |
</ul>"; | |
OUTPUT | |
<ul class="posts">{"_id":"first","name":"My first post","title":"first","content":"This is my first post","ctime":1329501275682,"mtime":1329501275682,"resource":"Post","_rev":"1-c045632b8020ed83d84210f2bfe8eac5"},{"_id":"second","name":"My second post","title":"second","content":"This is my second post","ctime":1329501275691,"mtime":1329501275691,"resource":"Post","_rev":"1-dfb6794533ecd5141d273cb46d4d0b69"},{"_id":"third","name":"My third post","title":"third","content":"This is my third post","ctime":1329501275692,"mtime":1329501275692,"resource":"Post","_rev":"1-9932ceaa200692ceef46da96c9c9134c"}</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to repeat just the inside of the UL, do this.