about summary refs log tree commit diff stats
path: root/examples
Commit message (Collapse)AuthorAgeLines
* Add Map function (#40)Markus Wüstenberg2020-11-02-6/+6
| | | `Map` makes it easier to build lists of elements without having to iterate.
* Render to Writer instead of string (#39)Markus Wüstenberg2020-11-02-8/+9
| | | | | | | 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.)
* Add attribute helpers (#35)Markus Wüstenberg2020-10-28-19/+14
| | | Also refactor tests to be table-driven, for readability.
* Add br and hr element helpers (#30)Hans Raaf2020-10-23-0/+1
|
* Remove "fmt" import in readme example (#31)Hans Raaf2020-10-23-2/+6
| | | Also style menu in simple example slightly.
* Add simple example (#13)Markus Wüstenberg2020-09-21-0/+70