about summary refs log tree commit diff stats
path: root/README.md
Commit message (Collapse)AuthorAgeLines
* Fix code in readme (#69)Markus Wüstenberg2021-05-05-3/+3
| | | Broken in #66.
* Add data- attribute helper (#61)Markus Wüstenberg2020-12-22-1/+2
| | | Fixes #49.
* Simplify available elements (#55)Markus Wüstenberg2020-12-10-2/+2
| | | | | | | `a`, `form`, `img`, `input`, `label`, `option`, `progress`, `select`, and `textarea` are now just regular elements (without helper parameters), because: - Sometimes the use case doesn't fit (`a` as anchor without href, for example) - There's no reason these are special among the others, so streamlining them makes sense Also added new attributes `action`, `alt`, `for`, `method` that I had somehow missed.
* Rename Document to Doctype (#54)Markus Wüstenberg2020-12-10-4/+4
|
* Move elements and attributes into html package (#52)Markus Wüstenberg2020-12-10-50/+66
| | | | | This makes it easier to use dot-imports. Also updated the readme and examples with new usage, and move the `Classes` helper into the `components` package.
* Render correct HTML5 (#44)Markus Wüstenberg2020-11-16-3/+3
| | | | | | | | | Previously, elements of kind void and empty elements generally would be rendered auto-closing (with a final `/` character in the start tag), which is allowed sometimes but arguably wrong. See https://dev.w3.org/html5/spec-LC/syntax.html#end-tags This created problems with for example `textarea` and `script`, which cannot be auto-closing, or the browser renders it wrong. Also clarified in the docs that this library outputs HTML5. Fixes #42.
* Add package docs (#41)Markus Wüstenberg2020-11-02-0/+10
| | | Also update readme with features.
* Render to Writer instead of string (#39)Markus Wüstenberg2020-11-02-2/+2
| | | | | | | 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 HTML5 document template (#36)Markus Wüstenberg2020-10-29-0/+46
|
* Remove "fmt" import in readme example (#31)Hans Raaf2020-10-23-1/+0
| | | Also style menu in simple example slightly.
* Update readme with blog post link (#23)Markus Wüstenberg2020-09-25-1/+4
|
* Add Textf function (#17)Markus Wüstenberg2020-09-23-1/+1
| | | Like Text, but calls fmt.Sprintf before rendering.
* Add better example in readme (#16)Markus Wüstenberg2020-09-23-6/+33
|
* Add simple example (#13)Markus Wüstenberg2020-09-21-0/+33
|
* Try out codecov.io (#5)Markus Wüstenberg2020-09-18-0/+1
|
* Add godoc link to readme (#2)Markus Wüstenberg2020-09-14-1/+3
|
* Add first implementation of Node, El, Attr, TextMarkus Wüstenberg2020-09-13-0/+8