Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Add HTML5 document template (#36) | Markus Wüstenberg | 2020-10-29 | -0/+10 |
| | ||||
* | Add attribute helpers (#35) | Markus Wüstenberg | 2020-10-28 | -53/+229 |
| | | | Also refactor tests to be table-driven, for readability. | |||
* | Group element helpers in different files (#21) | Markus Wüstenberg | 2020-09-25 | -0/+0 |
| | | | According to the section at https://developer.mozilla.org/en-US/docs/Web/HTML/Element | |||
* | Add space before auto-closing element (#20) | Markus Wüstenberg | 2020-09-24 | -2/+2 |
| | ||||
* | Add convenience helpers for form elements (#19) | Markus Wüstenberg | 2020-09-24 | -0/+31 |
| | ||||
* | Introduce Placer interface (#18) | Markus Wüstenberg | 2020-09-24 | -0/+10 |
| | | | | | 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 | -7/+22 |
| | | | 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/+64 |