diff options
author | Yarden Shoham | 2024-08-19 13:01:33 +0300 |
---|---|---|
committer | GitHub | 2024-08-19 12:01:33 +0200 |
commit | aade77281e640f52c1ee19d9336493d953bacc2c (patch) | |
tree | 79309bacb7b1fd88eb9208b08226269bddfe6bd4 /html/attributes.go | |
parent | 033f6ac3c36da0e95882d2e00b8cdd54468d3050 (diff) | |
download | gomponents-aade77281e640f52c1ee19d9336493d953bacc2c.tar.lz gomponents-aade77281e640f52c1ee19d9336493d953bacc2c.tar.zst gomponents-aade77281e640f52c1ee19d9336493d953bacc2c.zip |
Add `cite` attribute (#192)
It can appear in a `<blockquote>`. - Closes https://github.com/maragudk/gomponents/issues/189 Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Diffstat (limited to 'html/attributes.go')
-rw-r--r-- | html/attributes.go | 4 |
1 files changed, 4 insertions, 0 deletions
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) } |