From 7c0f2e4cbb4da6d7074bd78be9c55d3495c0dad7 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Tue, 8 Jun 2021 16:52:57 +0200 Subject: Add LinkStylesheet and LinkPreload components (#79) These are often used in the `` part of the HTML.--- html/attributes.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'html/attributes.go') diff --git a/html/attributes.go b/html/attributes.go index 23559f6..ab575d8 100644 --- a/html/attributes.go +++ b/html/attributes.go @@ -61,6 +61,10 @@ func Aria(name, v string) g.Node { return g.Attr("aria-"+name, v) } +func As(v string) g.Node { + return g.Attr("as", v) +} + func AutoComplete(v string) g.Node { return g.Attr("autocomplete", v) } -- cgit 1.4.1