mirror of https://github.com/sveltejs/svelte
commit
da165be1bf
@ -0,0 +1,9 @@
|
|||||||
|
export default {
|
||||||
|
data: {
|
||||||
|
array: [true, false],
|
||||||
|
},
|
||||||
|
html: `
|
||||||
|
<div>foo</div>
|
||||||
|
<div>bar</div>
|
||||||
|
`,
|
||||||
|
};
|
@ -0,0 +1,7 @@
|
|||||||
|
{{#each array as item}}
|
||||||
|
{{#if item}}
|
||||||
|
<div>foo</div>
|
||||||
|
{{else}}
|
||||||
|
<div>bar</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/each}}
|
Loading…
Reference in new issue