mirror of https://github.com/sveltejs/svelte
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.
21 lines
457 B
21 lines
457 B
5 years ago
|
<script>
|
||
|
const document = 'I hereby declare Svelte the bestest framework.';
|
||
|
const console = 'nintendo sixty four';
|
||
|
const Error = 'Woops.';
|
||
|
const Object = 42;
|
||
|
const Map = false;
|
||
|
|
||
|
const everyone = [document, console, Error, Object, Map];
|
||
|
</script>
|
||
|
|
||
|
<svelte:head>
|
||
|
<title>Cute test</title>
|
||
|
</svelte:head>
|
||
|
|
||
|
<svelte:window on:click></svelte:window>
|
||
|
<svelte:body on:mouseenter></svelte:body>
|
||
|
|
||
|
{#each everyone as someone (someone)}
|
||
|
<p>{someone}</p>
|
||
|
{/each}
|