mirror of https://github.com/sveltejs/svelte
parent
4a32e59f2e
commit
8c8b6ccfa4
@ -0,0 +1,3 @@
|
||||
{{#each animals as animal, i}}
|
||||
<p>{{i}}: {{animal}}</p>
|
||||
{{/each}}
|
@ -0,0 +1,63 @@
|
||||
{
|
||||
"html": {
|
||||
"start": 0,
|
||||
"end": 66,
|
||||
"type": "Fragment",
|
||||
"children": [
|
||||
{
|
||||
"start": 0,
|
||||
"end": 66,
|
||||
"type": "EachBlock",
|
||||
"expression": {
|
||||
"start": 8,
|
||||
"end": 15,
|
||||
"type": "Identifier",
|
||||
"name": "animals"
|
||||
},
|
||||
"context": "animal",
|
||||
"index": "i",
|
||||
"children": [
|
||||
{
|
||||
"start": 32,
|
||||
"end": 56,
|
||||
"type": "Element",
|
||||
"name": "p",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"start": 35,
|
||||
"end": 40,
|
||||
"type": "MustacheTag",
|
||||
"expression": {
|
||||
"start": 37,
|
||||
"end": 38,
|
||||
"type": "Identifier",
|
||||
"name": "i"
|
||||
}
|
||||
},
|
||||
{
|
||||
"start": 40,
|
||||
"end": 42,
|
||||
"type": "Text",
|
||||
"data": ": "
|
||||
},
|
||||
{
|
||||
"start": 42,
|
||||
"end": 52,
|
||||
"type": "MustacheTag",
|
||||
"expression": {
|
||||
"start": 44,
|
||||
"end": 50,
|
||||
"type": "Identifier",
|
||||
"name": "animal"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"css": null,
|
||||
"js": null
|
||||
}
|
@ -1 +1,3 @@
|
||||
{{#each animals as animal}}<p>{{animal}}</p>{{/each}}
|
||||
{{#each animals as animal}}
|
||||
<p>{{animal}}</p>
|
||||
{{/each}}
|
||||
|
Loading…
Reference in new issue