I have looked at the documentation for [<svelte:component>]
(here), but that looks like I would have had to import
all of the possible templates at compile time.
Is it possible in Svelte to load any number of arbitrary templates from something like a fetch()
call based on a user action? Then inject data into it?
Would it be inefficient to use <slot>
for something like this, if I plan on updating it after the initial load?