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

Make Group renderable #162

Closed
markuswustenberg opened this issue Jan 22, 2024 · 0 comments · Fixed by #181
Closed

Make Group renderable #162

markuswustenberg opened this issue Jan 22, 2024 · 0 comments · Fixed by #181
Milestone

Comments

@markuswustenberg
Copy link
Member

Maybe all the rendering logic can be moved from El into a shared function easily?

@markuswustenberg markuswustenberg added this to the v1 milestone May 8, 2024
markuswustenberg added a commit that referenced this issue Jun 25, 2024
This change adds a `Fragment` top-level function, to render multiple elements without a parent element.

It's basically the same as `Group`, except the function signature matches the style of the other functions by being variadic.

But I also made `Group` renderable directly, with the important caveat that root-level attributes are _ignored_.
I don't think this will give problems in practice, as the main use case for `Fragment` is basically to return
root-level elements to the client using something like HTMX.

Fixes #162
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

Successfully merging a pull request may close this issue.

1 participant