diff options
author | Markus Wüstenberg | 2020-10-22 09:07:57 +0200 |
---|---|---|
committer | GitHub | 2020-10-22 09:07:57 +0200 |
commit | 6d2fb0eeb15d6b9774f127517d160137251264a4 (patch) | |
tree | d571a516f25e85dd4086521d73a419573d776df2 /el/media.go | |
parent | f2a2b949704e2faa7117dd33aae8da551a4baf8e (diff) | |
download | gomponents-6d2fb0eeb15d6b9774f127517d160137251264a4.tar.lz gomponents-6d2fb0eeb15d6b9774f127517d160137251264a4.tar.zst gomponents-6d2fb0eeb15d6b9774f127517d160137251264a4.zip |
Add Group function to group Nodes (#29)
Diffstat (limited to 'el/media.go')
-rw-r--r-- | el/media.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/el/media.go b/el/media.go index 4a19865..89787da 100644 --- a/el/media.go +++ b/el/media.go @@ -5,5 +5,5 @@ import ( ) func Img(src, alt string, children ...g.Node) g.NodeFunc { - return g.El("img", prepend2(g.Attr("src", src), g.Attr("alt", alt), children)...) + return g.El("img", g.Attr("src", src), g.Attr("alt", alt), g.Group(children)) } |