mirror of https://github.com/sveltejs/svelte
parent
05789daff9
commit
527d099a09
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: transform `{@render ...}` expression
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `<p>hello world</p>`
|
||||
});
|
@ -0,0 +1,11 @@
|
||||
<script>
|
||||
import { writable } from 'svelte/store';
|
||||
|
||||
let snippet = writable(hello);
|
||||
</script>
|
||||
|
||||
{#snippet hello()}
|
||||
<p>hello world</p>
|
||||
{/snippet}
|
||||
|
||||
{@render $snippet()}
|
Loading…
Reference in new issue