| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
| |
This makes it easier to use dot-imports.
Also updated the readme and examples with new usage, and move the `Classes` helper into the `components` package.
|
| |
|
|
|
| |
`Map` makes it easier to build lists of elements without having to iterate.
|
|
|
|
|
|
|
| |
The Render function has been changed to take a `Writer` instead of returning a string. This makes it possible to generate documents without having the whole content in memory.
This also removes the `gomponents.Write` function, which is now redundant.
Furthermore, the `el.Document` function has been changed to only take one child, as multiple children never make sense for it. (It's not even a child, more a sibling.)
|
|
|
| |
Also refactor tests to be table-driven, for readability.
|
| |
|
|
|
| |
Also style menu in simple example slightly.
|
|
|