3b7dceab89
There were a lot of elements previously, like `Em`, `H1`, and a lot more, that took a string as the first argument previously. This was weird when you wanted to mix elements to output html like `<strong><em>…</em></strong>` or `<h1>Something <em>something</em> something</h1>`. gomponents is not an HTML validator, so I want people to be able to use elements however they please, also without text content. This also means that all elements now have the same API. |
||
---|---|---|
.. | ||
attributes_test.go | ||
attributes.go | ||
documents_test.go | ||
documents.go | ||
elements_test.go | ||
elements.go |