| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
|
| |
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.)
|
|
|
|
|
|
|
| |
This change adds a lot of element helpers, and refactors:
- helpers into simple, text, and other helpers
- most tests into table-driven tests, so they're easier to read
Thanks to @oderwat for pushing me to improve the tests. 😉
|
| |
|
| |
|
|
|
| |
Fixes #22.
|
|
|
| |
According to the section at https://developer.mozilla.org/en-US/docs/Web/HTML/Element
|
| |
|
| |
|
|
|
| |
This makes it possible to add attributes.
|
|
|
| |
Especially add elements that are either used in every document, that nearly always have text content, or that are almost always used with certain attributes.
|
|
|