Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to use a layoutsfile? #120

Open
mrwidde opened this issue Mar 1, 2020 · 1 comment
Open

Possible to use a layoutsfile? #120

mrwidde opened this issue Mar 1, 2020 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mrwidde
Copy link

mrwidde commented Mar 1, 2020

Hi,

Thanks for a great framework. I'm using this framework with svelte on CapRover and it all works great.

Does this framework support a "layouts-file"? Like many of my components (navigation, footer etc) should be visible on every page. It would be great if i could have one index file where i declare a header and a footer. In between the header and the footer i could inject my routes. Maybe this is already possible?

Sapper has something like this:

<!-- src/routes/_layout.html -->
<nav>
	<a href=".">Home</a>
	<a href="about">About</a>
	<a href="settings">Settings</a>
</nav>
<svelte:component this={child.component} {...child.props}/>
<footer></footer>
@mrwidde mrwidde changed the title Layout Possible to use a layoutsfile? Mar 1, 2020
@asadm
Copy link
Contributor

asadm commented Mar 1, 2020

This is probably the most requested feature right now. Zero doesn't support it right now but it's in the plans for near future.

@asadm asadm added enhancement New feature or request help wanted Extra attention is needed labels Mar 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants