AlexxNB / tinro

Highly declarative, tiny, dependency free router for Svelte's web applications.
MIT License
673 stars 30 forks source link

Can someone please explain the each block code for Recipes -> Transitions #20

Closed kritollm closed 4 years ago

kritollm commented 4 years ago

{#each '_' as _($router.path)}{$router.path,''}

Hi. Can someone please explain the code above. Recipes -> Transitions

Sorry if this does not fall under issues, but I have googled and searched in the Svelte documentation without being able to get an understanding of how the code works.

AlexxNB commented 4 years ago

It is just a magic which I created when looking for a way to remount template parts when some variable changes.