all repos — gomponents @ 32ad318ce8e77ae55e5cf68f9217271fb719333c

HTML components in pure Go

Add EncType html attribute (#109)

Markus Wüstenberg
commit

32ad318ce8e77ae55e5cf68f9217271fb719333c

parent

f387a7123040d9414350bf783bdeff17ac0572c7

2 files changed, 5 insertions(+), 0 deletions(-)

changed files
M html/attributes.gohtml/attributes.go
@@ -217,3 +217,7 @@
func Width(v string) g.Node { return g.Attr("width", v) } + +func EncType(v string) g.Node { + return g.Attr("enctype", v) +}
M html/attributes_test.gohtml/attributes_test.go
@@ -45,6 +45,7 @@ "charset": Charset,
"class": Class, "cols": Cols, "content": Content, + "enctype": EncType, "for": For, "form": FormAttr, "height": Height,