Skip to main content
App.svelte
<script>
	let src = '/tutorial/image.gif';
	let name = 'Rick Astley';
</script>

<!-- {src} is short for src={src} -->
<img {src} alt="{name} dancing">
loading editor...

Console

loading Svelte compiler...
 
loading editor...

Compiler options

result = svelte.compile(source, {
generate:
});
 
loading editor...
		
			

No AST available

The AST is not public API and may change at any point in time