all repos — gomponents @ 6d2fb0eeb15d6b9774f127517d160137251264a4

HTML components in pure Go

Add Group function to group Nodes (#29)

Markus Wüstenberg
commit

6d2fb0eeb15d6b9774f127517d160137251264a4

parent

f2a2b949704e2faa7117dd33aae8da551a4baf8e

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M el/media.goel/media.go
@@ -5,5 +5,5 @@ g "github.com/maragudk/gomponents"
) 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)) }