diff options
author | Markus Wüstenberg | 2024-09-19 17:03:08 +0200 |
---|---|---|
committer | GitHub | 2024-09-19 17:03:08 +0200 |
commit | c97605aca761985ac45adfe19365801ec2682657 (patch) | |
tree | 226e3060b9f9a963f2f819ef8603159f62215a6f /.github | |
parent | 9c29bfccdb1a193721f710b45166aad5345ff75a (diff) | |
download | gomponents-c97605aca761985ac45adfe19365801ec2682657.tar.lz gomponents-c97605aca761985ac45adfe19365801ec2682657.tar.zst gomponents-c97605aca761985ac45adfe19365801ec2682657.zip |
Make Groups renderable (#181)
This change makes the result of `Group` renderable directly, instead of panicking, 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 rendering `Group` is basically to return root-level elements to the client using something like HTMX. I tried adding a `Fragment`, but it was weird and confusing having two functions (`Group` and `Fragment`) do essentially the same thing, the only difference being whether the argument was a slice of `Node`s or varargs. Fixes #162
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions