all repos — gomponents @ a79e6d9d10099c418846280ae4a4997e82f6efee

HTML components in pure Go

Add LabelEl (#180) For consistency with the other name clashes. Also, adjust the readme. I know it's a bit weird to add a pre-deprecated function, but know it's the same as the other functions.

Markus Wüstenberg
commit

a79e6d9d10099c418846280ae4a4997e82f6efee

parent

1c0ceb44a530632be2d591eafcadea2ba481a682

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

changed files
M README.mdREADME.md
@@ -145,11 +145,12 @@ For more complete examples, see [the examples directory](examples/).
### What's up with the specially named elements and attributes? -Unfortunately, there are four main name clashes in HTML elements and attributes, so they need an `El` or `Attr` suffix, +Unfortunately, there are five main name clashes in HTML elements and attributes, so they need an `El` or `Attr` suffix, to be able to co-exist in the same package in Go. I've chosen one or the other based on what I think is the common usage. In either case, the less-used variant also exists in the codebase: - `data` (`DataEl`/`Data`, `DataAttr` also exists) - `form` (`Form`/`FormAttr`, `FormEl` also exists) +- `label` (`Label`/`LabelAttr`, `LabelEl` also exists) - `style` (`StyleEl`/`Style`, `StyleAttr` also exists) - `title` (`TitleEl`/`Title`, `TitleAttr` also exists)