From 6d2fb0eeb15d6b9774f127517d160137251264a4 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Thu, 22 Oct 2020 09:07:57 +0200 Subject: Add Group function to group Nodes (#29) --- el/media.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'el/media.go') 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)) } -- cgit 1.4.1