Skip to content

Commit

Permalink
advent of svelte day 3 — exported snippets (sveltejs#924)
Browse files Browse the repository at this point in the history
exported snippets
  • Loading branch information
Rich-Harris authored Dec 3, 2024
1 parent 6fb7411 commit e24407c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/svelte.dev/content/blog/2024-12-01-advent-of-svelte.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ If you just want to render something in an `{#each ...}` block _n_ times, and do
- [docs](/docs/svelte/each#Each-blocks-without-an-item)
- [demo](/playground/untitled#H4sIAAAAAAAAA3WP3WrDMAyFX0VoDFqWtGRXxWsKY4-x7MKx1SbUtY2tdi0h7z7s_myD9k6c8-lIZ0Ard4QCPzqKEVong8YC172hiOJzQD75ZCcBiyv87v0sHshw0loZ6Z6unGWyHFHgUvcHUEbGWDeo0qUyX2pw1diGhyeSqoMBDNkNdwIWMBYQpN2OyX4EpJ8uQMO_J0RrpNrWwyQFwEvGpvAMr1DXNVTjajnX_WF1SZ6n5JxyG2--XUY-Gcro7M_bMJyXdR-9kScBm9Drt7OWxpJp541kKpUz-52NAgJ5kjxZFFCtw_QuG9z3I7B1QVMQUPkjRGd6DbnjxZXRk-IySO6dgCqpWZ9l6Ppsw61U201we6vFv_3cPvc-18UCmY6MgsOexq_xBw8BVaUkAgAA)

## Day 3
## Day 3: exported snippets

Coming soon!
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.

- [docs](/docs/svelte/snippet#Exporting-snippets)
- [demo](/playground/16b7dd7105c248e59ec8a437697f588d?version=5.5.0)

## Day 4

Expand Down

0 comments on commit e24407c

Please sign in to comment.