Simplify available elements (#55) `a`, `form`, `img`, `input`, `label`, `option`, `progress`, `select`, and `textarea` are now just regular elements (without helper parameters), because: - Sometimes the use case doesn't fit (`a` as anchor without href, for example) - There's no reason these are special among the others, so streamlining them makes sense Also added new attributes `action`, `alt`, `for`, `method` that I had somehow missed.
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M README.md → README.md
@@ -78,7 +78,7 @@ ) } func NavbarLink(href, name, currentPath string) g.Node { - return A(href, c.Classes{"is-active": currentPath == href}, g.Text(name)) + return A(Href(href), c.Classes{"is-active": currentPath == href}, g.Text(name)) } ```@@ -129,7 +129,7 @@ ) } func NavbarLink(href, name, currentPath string) g.Node { - return A(href, c.Classes{"is-active": currentPath == href}, g.Text(name)) + return A(Href(href), c.Classes{"is-active": currentPath == href}, g.Text(name)) } ```