Add dir (#176) `dir` is a global attribute that lets you specify whether text is RTL or LTR or if it should be determined by the browser. Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir
1 file changed, 4 insertions(+), 0 deletions(-)
changed files
M html/attributes.go → html/attributes.go
@@ -270,3 +270,7 @@ func EncType(v string) g.Node { return g.Attr("enctype", v) } + +func Dir(v string) g.Node { + return g.Attr("dir", v) +}