svelte/test/runtime/samples/head-if-block/main.svelte

10 lines
120 B

<script>
export let condition;
</script>
<svelte:head>
{#if condition}
<title>woo!!!</title>
{/if}
</svelte:head>