You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/if-block-compound-outro-no-.../main.svelte

33 lines
306 B

<script>
import { writable } from 'svelte/store';
const foo = writable(true);
</script>
{#if $foo}
blah
{:else}
{#if bar()}
<Bar/>
{/if}
{/if}
{#if $foo}
blah
{:else}
{#if bar}
<Baz/>
{/if}
{/if}
{#if $foo}
blah
{:else if bar()}
<Bar/>
{/if}
{#if $foo}
blah
{:else if bar}
<Bar/>
{/if}