Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Add space before auto-closing element (#20) | Markus Wüstenberg | 2020-09-24 | -1/+1 |
| | ||||
* | Introduce Placer interface (#18) | Markus Wüstenberg | 2020-09-24 | -0/+6 |
| | | | | | 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. | |||
* | Make attr.Classes a map type (#14) | Markus Wüstenberg | 2020-09-23 | -2/+9 |
| | | | This makes the usage syntax prettier. Instead of `attr.Classes(map[string]bool{})`, we can just use `attr.Classes{}`. | |||
* | Add package attr with attribute helpers (#7) | Markus Wüstenberg | 2020-09-18 | -0/+31 |