about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeLines
* Make version numbers strings in yamlMarkus Wüstenberg2023-05-04-5/+5
|
* Test with Go 1.20 in CIMarkus Wüstenberg2023-05-04-0/+1
|
* Add Step attribute (#126)Markus Wüstenberg2023-01-17-0/+5
| | | | | See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step Fixes #120.
* Add ColSpan and RowSpan attributes (#125)Markus Wüstenberg2023-01-17-0/+10
|
* Remove year from LICENSE (#121)Markus Wüstenberg2023-01-03-1/+1
|
* Upgrade codecov-action to v3 in CI (#119)Markus Wüstenberg2022-11-15-1/+1
|
* Put .PHONY in front of each target in Makefile (#118)Markus Wüstenberg2022-11-15-2/+4
|
* Rename master branch to main (#117)Markus Wüstenberg2022-11-15-3/+3
|
* Add stroke-width SVG attribute (#116)Markus Wüstenberg2022-11-15-6/+11
|
* Delete low-value helper components (#115)Markus Wüstenberg2022-11-03-124/+61
| | | | I'd rather reserve the package for components that have proven repeatedly useful, like `Classes` and `HTML5`.
* Add Rawf (#114)Markus Wüstenberg2022-11-03-2/+25
| | | Like `Raw`, but interpolates like `Textf`.
* Add Go report card to readme (#111)Markus Wüstenberg2022-10-17-1/+2
| | | Also fix godoc badge to point to pkg.go.dev.
* Fix small typo occured -> occurred (#110)Markus Wüstenberg2022-10-17-1/+1
|
* Add EncType html attribute (#109)Markus Wüstenberg2022-09-29-0/+5
|
* Add generic Map implementation (#108)Markus Wüstenberg2022-09-22-37/+106
| | | | | | | | | | | Instead of waiting for a good time to switch the `Map` implementation, I've decided to just offer two implementations: one for Go versions before 1.18, and one for 1.18 and onwards. This is achieved using build tags in the source files. This is obviously a breaking change for consumers of this library that use Go 1.18 and onwards. See #88
* Add Go 1.19 to test matrix (#107)Markus Wüstenberg2022-09-21-2/+5
|
* Use output of strings.Builder in assert.Equal (#106)Markus Wüstenberg2022-09-21-1/+1
|
* Make void elements a map (#103)Markus Wüstenberg2022-05-27-19/+39
| | | | | Makes it easier to lookup by name. Also, fixed some doc comments.
* Update package doc to reflect new content (#102)Markus Wüstenberg2022-05-25-5/+11
| | | It hadn't been updated in a while.
* Fix CI badge in Readme (#100)Markus Wüstenberg2022-05-25-1/+1
|
* Update CI config (#98)Markus Wüstenberg2022-05-25-72/+17
| | | | | - Drop current test workflows if a new one has come in - Use newer checkout and setup actions - Delete CodeQL workflow
* Update copyright year in licenseMarkus Wüstenberg2022-03-21-1/+1
|
* Use a test matrix with the last three stable Go versions (#96)Markus Wüstenberg2022-03-21-14/+21
|
* Add http.Adapt function (#92)Markus Wüstenberg2021-10-08-0/+156
| | | In the new package `http`, an `Adapt` function converts a `Handler` into a `http.HandlerFunc` from the `http` stdlib package.
* Test using Go 1.17 (#91)Markus Wüstenberg2021-10-06-6/+3
| | | Also set the new `-shuffle` flag when testing.
* Mark the assert test helpers as such (#90)Markus Wüstenberg2021-10-06-11/+14
| | | | | Using `t.Helper()`. Also move the assert package to be internal.
* Add loading and srcset HTML attributes (#86)Josep Jesus Bigorra Algaba2021-09-07-0/+10
| | | | | | | Useful for `img` and `picture` elements. Fixes #85. Co-authored-by: Josep Jesus Bigorra Algaba <josep@prowarehouse.nl>
* Add link to maragu.dk and golang.dk in readmeMarkus Wüstenberg2021-06-18-0/+2
|
* Add Github action status badge to readmeMarkus Wüstenberg2021-06-18-0/+1
|
* Add contributors fileMarkus Wüstenberg2021-06-18-0/+9
|
* Add video element and related attributes (#84)Markus Wüstenberg2021-06-18-15/+40
| | | Adds the `video` element and `loop`, `muted`, `playsinline`, `poster` attributes.
* Add javascript alert onclick handler to Raw example (#82)Markus Wüstenberg2021-06-09-2/+4
| | | Makes for fun XSS testing.
* Add examples in test files (#80)Markus Wüstenberg2021-06-08-13/+64
| | | These show up in godoc.
* Add LinkStylesheet and LinkPreload components (#79)Markus Wüstenberg2021-06-08-0/+27
| | | These are often used in the `<head>` part of the HTML.
* Escape Attr values (#77)Markus Wüstenberg2021-05-18-1/+15
| | | | | Because this can be a place of injection if untrusted data is passed, escape all attribute values. Fixes #74.
* Fix TailwindCSS CDN URL in example (#76)Markus Wüstenberg2021-05-11-4/+4
| | | | | The CSS style URLs from unpkg.com redirected to a different page, but the first request set a `Content-Type` header of `text/plain`. Using the direct URLs fixes this. Fixes #75. Thanks to @gedw99 for reporting.
* Update readme with content from website (#73)Markus Wüstenberg2021-05-07-8/+8
|
* Bump Go version to 1.16 in CI (#72)Markus Wüstenberg2021-05-07-9/+8
|
* Add more complex example using TailwindCSS (#71)Markus Wüstenberg2021-05-07-0/+125
|
* Add svg package and a few helpers (#67)Markus Wüstenberg2021-05-05-0/+101
| | | Introducing SVG, to inline vector graphics in your HTML! 🥳
* Fix code in readme (#69)Markus Wüstenberg2021-05-05-3/+3
| | | Broken in #66.
* Update license year (#68)Markus Wüstenberg2021-05-05-1/+1
|
* Streamline HTML element API (#66)Markus Wüstenberg2021-05-05-104/+92
| | | | | 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.
* Use g.If in HTML5 helper (#65)Markus Wüstenberg2021-04-28-9/+2
| | | Inlining looks much nicer.
* Return Node from all helpers instead of NodeFunc (#62)Markus Wüstenberg2021-01-07-122/+122
| | | | | This makes it clearer that the helpers return a `Node` of any kind, and that the type is not important. This also streamlines the API, as attribute helpers already return just `Node`.
* Add data- attribute helper (#61)Markus Wüstenberg2020-12-22-3/+16
| | | Fixes #49.
* Add test for InputHidden (#60)Markus Wüstenberg2020-12-22-0/+16
|
* Add aria-* and role attributes (#59)Markus Wüstenberg2020-12-22-0/+17
| | | Fixes #50.
* Add If helper function (#57)Markus Wüstenberg2020-12-22-3/+38
| | | Used to inline conditional nodes.
* Change main example to be the dot-import version (#56)Markus Wüstenberg2020-12-10-86/+43
|