Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Use HTMLEscapeString (#24) | Markus Wüstenberg | 2020-09-25 | -1/+1 |
| | | | HTMLEscaper is not needed with strings. | |||
* | Add space before auto-closing element (#20) | Markus Wüstenberg | 2020-09-24 | -2/+2 |
| | ||||
* | Introduce Placer interface (#18) | Markus Wüstenberg | 2020-09-24 | -8/+36 |
| | | | | | 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üstenberg | 2020-09-23 | -0/+7 |
| | | | Like Text, but calls fmt.Sprintf before rendering. | |||
* | Add a Write function (#11) | Markus Wüstenberg | 2020-09-21 | -0/+7 |
| | ||||
* | Don't render twice with children (#9) | Markus Wüstenberg | 2020-09-21 | -4/+3 |
| | ||||
* | Make NodeFunc and attr implement fmt.Stringer (#6) | Markus Wüstenberg | 2020-09-18 | -0/+10 |
| | ||||
* | Add package documentation (#1) | Markus Wüstenberg | 2020-09-14 | -0/+7 |
| | ||||
* | Add first implementation of Node, El, Attr, Text | Markus Wüstenberg | 2020-09-13 | -0/+100 |