Skip to content

Commit e24407c

Browse files
authored
advent of svelte day 3 — exported snippets (#924)
exported snippets
1 parent 6fb7411 commit e24407c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/svelte.dev/content/blog/2024-12-01-advent-of-svelte.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ If you just want to render something in an `{#each ...}` block _n_ times, and do
2626
- [docs](/docs/svelte/each#Each-blocks-without-an-item)
2727
- [demo](/playground/untitled#H4sIAAAAAAAAA3WP3WrDMAyFX0VoDFqWtGRXxWsKY4-x7MKx1SbUtY2tdi0h7z7s_myD9k6c8-lIZ0Ard4QCPzqKEVong8YC172hiOJzQD75ZCcBiyv87v0sHshw0loZ6Z6unGWyHFHgUvcHUEbGWDeo0qUyX2pw1diGhyeSqoMBDNkNdwIWMBYQpN2OyX4EpJ8uQMO_J0RrpNrWwyQFwEvGpvAMr1DXNVTjajnX_WF1SZ6n5JxyG2--XUY-Gcro7M_bMJyXdR-9kScBm9Drt7OWxpJp541kKpUz-52NAgJ5kjxZFFCtw_QuG9z3I7B1QVMQUPkjRGd6DbnjxZXRk-IySO6dgCqpWZ9l6Ppsw61U201we6vFv_3cPvc-18UCmY6MgsOexq_xBw8BVaUkAgAA)
2828

29-
## Day 3
29+
## Day 3: exported snippets
3030

31-
Coming soon!
31+
You can now export snippets from a component's `<script module>`, for use in other components, as long as those snippets don't reference anything belonging to the component instance.
32+
33+
- [docs](/docs/svelte/snippet#Exporting-snippets)
34+
- [demo](/playground/16b7dd7105c248e59ec8a437697f588d?version=5.5.0)
3235

3336
## Day 4
3437

0 commit comments

Comments
 (0)