-
Notifications
You must be signed in to change notification settings - Fork 1
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
Named slots #12
Comments
Hi, I'm sorry I don't think it does! Keystone is getting a little old now. If you're after something newer there's some really cool tools, in particular Astro, which can be used for similar purposes! |
Oh man that's sad to hear. I took a look at Astro and it was a bit much for what I wanted to do. Keystone really has the exact philosophy and concept that I'm looking for. I want to try to take a look at it in in-depth and implement some new features if I can and submit a pull request. |
I was hoping for implementing features similar to https://sergey.cool/. What I did not like about sergey is its recompile concept. |
Oh right, yes Astro can do a lot! But it's also really good at plain HTML slots too: ---
const { title = 'Fallback if no title passed' } = Astro.props
---
<html lang="en">
<head>
<title>{title}</title>
</head>
<body>
<slot name="main">
Fallback content if no slot provided
</slot>
</body>
</html>
---
import Layout from '../components/Layout.astro'
---
<Layout title="My title">
<div slot="main">
Main content
</div>
</Layout> Though in saying that, I'll happily review any changes you make to Keystone 😄 |
Does your frame work support named slots?
e.g.
The text was updated successfully, but these errors were encountered: