In Svelte you can pass props to the content in a slot.
<Component let:message="Hello!">
<div>
{message}
</div>
</Component>
When Sapper uses a layout to render a route, the route contents are rendered in a slot too. The problem is that since Sapper takes control of this process it doesn't seem possible to pass a slot prop to a route.
This doesn't work:
// _layout.svelte
<slot message="Hello!"></slot>
So what is the appropriate way of passing data from a layout to a rendered route? For example segment
.