This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Reset layout in nested route #809
Closed
Description
Hi everyone, I'm currently building an app with sapper and am quite happy with it. There is one problem though.
I have a _layout.svelte
file in my src/routes
folder to get a consistent navigation component on all pages. All sub routes inherit that layout, which is fine in most cases. Now I want a nested routed, but it should not use any _layout.svelte
that is above in the tree.
Example file structure:
src/routes
├── _error.svelte
├── _layout.svelte
├── user
│ └── [user_id]
│ ├── index.svelte
│ └── info
│ └── index.svelte /* this should not use `src/routes/_layout.svelte` */
└── index.svelte
Is there any way to reset the layout or tell a page to not inherit layouts?
Metadata
Metadata
Assignees
Labels
No labels