all repos — gomponents @ 853044729768d3a52d1aba5c9e081737a5088b11

HTML components in pure Go

Add test for dot imports (#225) So we can be sure all dot imports work at the same time.

Markus Wüstenberg
commit

853044729768d3a52d1aba5c9e081737a5088b11

parent

05d56605492cb89bebd80421a6d2afaa947344f0

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

changed files
M README.mdREADME.md
@@ -70,13 +70,13 @@ return A(Href(href), Classes{"is-active": currentPath == href}, g.Text(name))
} ``` -Some people don't like dot-imports, and luckily it's completely optional. +(Some people don't like dot-imports, and luckily it's completely optional.) For a more complete example, see [the examples directory](internal/examples/). ### What's up with the specially named elements and attributes? -Unfortunately, there are six main name clashes in HTML elements and attributes, so they need an `El` or `Attr` suffix, +Unfortunately, there are some 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.