mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-20 05:25:11 +00:00
update for slot based routing
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import Nav from '../components/Nav.html';
|
import Nav from '../components/Nav.html';
|
||||||
|
|
||||||
export let child;
|
export let segment;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@@ -15,8 +15,8 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<Nav segment={child.segment}/>
|
<Nav {segment}/>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<svelte:component this={child.component} {...child.props}/>
|
<slot></slot>
|
||||||
</main>
|
</main>
|
||||||
Reference in New Issue
Block a user