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

Feature request: Conditional slots #61

Open
JuroOravec opened this issue Dec 11, 2023 · 0 comments
Open

Feature request: Conditional slots #61

JuroOravec opened this issue Dec 11, 2023 · 0 comments

Comments

@JuroOravec
Copy link
Contributor

Add a way to check if children have been given. This is akin to Django component's conditional slots.

Ideally the prop would be available already in the frontmatter.

Little update to the https://github.com/mixxorz/slippers/blob/main/slippers/templatetags/slippers.py#L110 should do the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant