From aade77281e640f52c1ee19d9336493d953bacc2c Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Mon, 19 Aug 2024 13:01:33 +0300 Subject: Add `cite` attribute (#192) It can appear in a `
`. - Closes https://github.com/maragudk/gomponents/issues/189 Signed-off-by: Yarden Shoham --- 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 edaf85e..ccd1cb4 100644 --- a/html/attributes.go +++ b/html/attributes.go @@ -101,6 +101,10 @@ func Charset(v string) g.Node { return g.Attr("charset", v) } +func CiteAttr(v string) g.Node { + return g.Attr("cite", v) +} + func Class(v string) g.Node { return g.Attr("class", v) } -- cgit 1.4.1