about summary refs log tree commit diff stats
path: root/gomponents_test.go
Commit message (Collapse)AuthorAgeLines
* Add space before auto-closing element (#20)Markus Wüstenberg2020-09-24-10/+10
|
* Introduce Placer interface (#18)Markus Wüstenberg2020-09-24-0/+11
| | | | | When implemented, the `Place` method of the `Placer` interface tells `Render` in `El` where to put a Node. This is relevant for helpers that want to be rendered like attributes, inside the parent element. Fixes the bug where `attr.Classes` was rendered outside the element.
* Add Textf function (#17)Markus Wüstenberg2020-09-23-0/+7
| | | Like Text, but calls fmt.Sprintf before rendering.
* Add a test for attr.String (#12)Markus Wüstenberg2020-09-21-0/+9
|
* Add a Write function (#11)Markus Wüstenberg2020-09-21-0/+30
|
* Make NodeFunc and attr implement fmt.Stringer (#6)Markus Wüstenberg2020-09-18-15/+18
|
* Add first implementation of Node, El, Attr, TextMarkus Wüstenberg2020-09-13-0/+75