I am fairly new to SvelteKit and can't figure out an issue related to slots. I'm trying to make an app layout that has a master and detail pane where the contents of the master and detail are determined based on the route.
Let's say I have a __layout.svelte file like this:
//-------------------------
// routes/__layout.svelte
//-------------------------
<main>
<slot name="master" />
<slot name="detail" />
</main>
Then I have another page like this (with several more route pages that are similar):
//-------------------------
// routes/users.svelte
//-------------------------
<div slot="master">
Users master content...
</div>
<div slot="detail">
Users detail content...
</div>
When I navigate to http://localhost:3000/users I just get an error that says I can't use slot="" in users.svelte because it's not inside a child component.
Am I going about this all wrong? How would you pull off a similar app layout in SvelteKit?