all repos — gomponents @ d41c4e5a85362dec7844a9093b43720eb0e70e72

HTML components in pure Go

Add data- attribute helper (#61) Fixes #49.

Markus Wüstenberg
commit

d41c4e5a85362dec7844a9093b43720eb0e70e72

parent

b4918d5a63434e162e5547cf0e8461fcd1931765

1 file changed, 2 insertions(+), 1 deletion(-)

changed files
M README.mdREADME.md
@@ -137,9 +137,10 @@ For more complete examples, see [the examples directory](examples/).
### What's up with the specially named elements and attributes? -Unfortunately, there are three main name clashes in HTML elements and attributes, so they need an `El` or `Attr` suffix, +Unfortunately, there are four main name clashes in HTML elements and attributes, so they need an `El` or `Attr` suffix, respectively, to be able to co-exist in the same package in Go: +- `data` (`DataEl`/`DataAttr`) - `form` (`FormEl`/`FormAttr`) - `style` (`StyleEl`/`StyleAttr`) - `title` (`TitleEl`/`TitleAttr`)