about summary refs log tree commit diff stats
path: root/html/attributes.go
diff options
context:
space:
mode:
authorMarkus Wüstenberg2021-06-08 16:52:57 +0200
committerGitHub2021-06-08 16:52:57 +0200
commit7c0f2e4cbb4da6d7074bd78be9c55d3495c0dad7 (patch)
treeb78fca0bfdde07f730c24b9a23c0b835c0911829 /html/attributes.go
parent3e9e00ca0dc6b58e58694d84c97a1d2f2ab4002b (diff)
downloadgomponents-7c0f2e4cbb4da6d7074bd78be9c55d3495c0dad7.tar.lz
gomponents-7c0f2e4cbb4da6d7074bd78be9c55d3495c0dad7.tar.zst
gomponents-7c0f2e4cbb4da6d7074bd78be9c55d3495c0dad7.zip
Add LinkStylesheet and LinkPreload components (#79)
These are often used in the `<head>` part of the HTML.
Diffstat (limited to 'html/attributes.go')
-rw-r--r--html/attributes.go4
1 files changed, 4 insertions, 0 deletions
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)
 }