30ac88ccaa
Add uptream
2023-12-26 20:41:42 -08:00
258100b833
Add XMLEl function
2023-12-26 20:39:00 -08:00
Markus Wüstenberg
d81de8319f
Test Go 1.21 in CI ( #147 )
2023-09-08 11:03:47 +02:00
Markus Wüstenberg
214138645b
Test Go 1.21 in CI
2023-09-08 11:01:06 +02:00
Markus Wüstenberg
a9890f5337
Add "checked" bool attribute ( #136 )
...
Fixes #127 .
2023-05-11 11:23:18 +02:00
Markus Wüstenberg
4248e85def
Add "checked" bool attribute
...
Fixes #127 .
2023-05-11 11:22:01 +02:00
Markus Wüstenberg
4f9709afcc
Document Text/Textf helpers better ( #135 )
...
Both in the readme and package doc.
Fixes #133 .
2023-05-11 10:08:27 +02:00
Markus Wüstenberg
c129ae8da1
Document Text/Textf helpers better
...
Both in the readme and package doc.
Fixes #133 .
2023-05-11 10:06:23 +02:00
Markus Wüstenberg
b638b8b078
Test with Go 1.20 in CI ( #134 )
...
Fixes #129 .
2023-05-04 09:49:50 +02:00
Markus Wüstenberg
f26f56cc56
Make version numbers strings in yaml
2023-05-04 09:48:27 +02:00
Markus Wüstenberg
b1f7754ccd
Test with Go 1.20 in CI
2023-05-04 09:46:20 +02:00
Markus Wüstenberg
8e4b1319d1
Add Step attribute ( #126 )
...
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step
Fixes #120 .
2023-01-17 12:05:47 +00:00
Markus Wüstenberg
e11dcad518
Add ColSpan and RowSpan attributes ( #125 )
2023-01-17 13:00:16 +01:00
Markus Wüstenberg
866b767b08
Remove year from LICENSE ( #121 )
2023-01-03 09:26:51 +00:00
Markus Wüstenberg
c1095faae1
Upgrade codecov-action to v3 in CI ( #119 )
2022-11-15 22:33:33 +01:00
Markus Wüstenberg
c615204215
Put .PHONY in front of each target in Makefile ( #118 )
2022-11-15 22:32:01 +01:00
Markus Wüstenberg
868a525244
Rename master branch to main ( #117 )
2022-11-15 22:19:09 +01:00
Markus Wüstenberg
a5a7242ae0
Add stroke-width SVG attribute ( #116 )
2022-11-15 14:48:01 +01:00
Markus Wüstenberg
b12942fb32
Delete low-value helper components ( #115 )
...
I'd rather reserve the package for components that have proven
repeatedly useful, like `Classes` and `HTML5`.
2022-11-03 11:32:16 +01:00
Markus Wüstenberg
3bb4e3efea
Add Rawf ( #114 )
...
Like `Raw`, but interpolates like `Textf`.
2022-11-03 11:24:26 +01:00
Markus Wüstenberg
34df17d356
Add Go report card to readme ( #111 )
...
Also fix godoc badge to point to pkg.go.dev.
2022-10-17 12:09:37 +00:00
Markus Wüstenberg
0e52e94472
Fix small typo occured -> occurred ( #110 )
2022-10-17 14:04:24 +02:00
Markus Wüstenberg
32ad318ce8
Add EncType html attribute ( #109 )
2022-09-29 10:46:36 +00:00
Markus Wüstenberg
f387a71230
Add generic Map implementation ( #108 )
...
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
2022-09-22 09:41:06 +02:00
Markus Wüstenberg
3334d6c7d0
Add Go 1.19 to test matrix ( #107 )
2022-09-21 10:42:07 +02:00
Markus Wüstenberg
3e992ed66c
Use output of strings.Builder in assert.Equal ( #106 )
2022-09-21 10:37:44 +02:00
Markus Wüstenberg
f4da48fb57
Make void elements a map ( #103 )
...
Makes it easier to lookup by name.
Also, fixed some doc comments.
2022-05-27 14:16:19 +02:00
Markus Wüstenberg
c868c525b4
Update package doc to reflect new content ( #102 )
...
It hadn't been updated in a while.
2022-05-25 14:36:26 +02:00
Markus Wüstenberg
97698614be
Fix CI badge in Readme ( #100 )
2022-05-25 09:01:53 +00:00
Markus Wüstenberg
b016f271d7
Update CI config ( #98 )
...
- Drop current test workflows if a new one has come in
- Use newer checkout and setup actions
- Delete CodeQL workflow
2022-05-25 08:21:27 +00:00
Markus Wüstenberg
565c60a8e4
Update copyright year in license
2022-03-21 12:22:32 +01:00
Markus Wüstenberg
540b2a3491
Use a test matrix with the last three stable Go versions ( #96 )
2022-03-21 12:05:17 +01:00
Markus Wüstenberg
0001b1d609
Add http.Adapt function ( #92 )
...
In the new package `http`, an `Adapt` function converts a `Handler` into a `http.HandlerFunc` from the `http` stdlib package.
2021-10-08 15:00:20 +02:00
Markus Wüstenberg
44c2744837
Test using Go 1.17 ( #91 )
...
Also set the new `-shuffle` flag when testing.
2021-10-06 20:51:31 +02:00
Markus Wüstenberg
4858e5d47d
Mark the assert test helpers as such ( #90 )
...
Using `t.Helper()`.
Also move the assert package to be internal.
2021-10-06 20:49:43 +02:00
Josep Jesus Bigorra Algaba
33524d6836
Add loading and srcset HTML attributes ( #86 )
...
Useful for `img` and `picture` elements.
Fixes #85 .
Co-authored-by: Josep Jesus Bigorra Algaba <josep@prowarehouse.nl>
2021-09-07 12:09:57 +02:00
Markus Wüstenberg
bd722def27
Add link to maragu.dk and golang.dk in readme
2021-06-18 10:35:58 +02:00
Markus Wüstenberg
aca5cdfe9d
Add Github action status badge to readme
2021-06-18 10:10:55 +02:00
Markus Wüstenberg
1ed5851e03
Add contributors file
2021-06-18 10:09:00 +02:00
Markus Wüstenberg
ec86ca5c71
Add video element and related attributes ( #84 )
...
Adds the `video` element and `loop`, `muted`, `playsinline`, `poster` attributes.
2021-06-18 09:39:47 +02:00
Markus Wüstenberg
0efc71d6f3
Add javascript alert onclick handler to Raw example ( #82 )
...
Makes for fun XSS testing.
2021-06-09 10:56:22 +02:00
Markus Wüstenberg
ba0d83f4fb
Add examples in test files ( #80 )
...
These show up in godoc.
2021-06-08 18:12:04 +02:00
Markus Wüstenberg
7c0f2e4cbb
Add LinkStylesheet and LinkPreload components ( #79 )
...
These are often used in the `<head>` part of the HTML.
2021-06-08 16:52:57 +02:00
Markus Wüstenberg
3e9e00ca0d
Escape Attr values ( #77 )
...
Because this can be a place of injection if untrusted data is passed, escape all attribute values.
Fixes #74 .
2021-05-18 14:21:53 +02:00
Markus Wüstenberg
ac7471aac6
Fix TailwindCSS CDN URL in example ( #76 )
...
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.
2021-05-11 16:39:04 +02:00
Markus Wüstenberg
1072ec9b70
Update readme with content from website ( #73 )
2021-05-07 14:40:55 +02:00
Markus Wüstenberg
d34b28be56
Bump Go version to 1.16 in CI ( #72 )
2021-05-07 14:35:47 +02:00
Markus Wüstenberg
e6538392ad
Add more complex example using TailwindCSS ( #71 )
2021-05-07 14:12:23 +02:00
Markus Wüstenberg
6f7752c20f
Add svg package and a few helpers ( #67 )
...
Introducing SVG, to inline vector graphics in your HTML! 🥳
2021-05-05 12:53:32 +02:00
Markus Wüstenberg
eb1d1f22b4
Fix code in readme ( #69 )
...
Broken in #66 .
2021-05-05 09:53:19 +02:00