Commit message (Collapse) | Author | Age | Lines | ||
---|---|---|---|---|---|
... | |||||
* | Add script's `integrity` and `crossorigin` attributes (#173) | Markus Wüstenberg | 2024-06-06 | -0/+10 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using `<script>` to pull a library from a CDN, it's usually a good idea to attach an integrity check so that if they get hacked and someone changes all the script, malicious scripts don't get executed on your website. To achieve this, you need to attach `integrity` and `crossorigin` to your `<script/>` tag ```go Script( Scr("https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js"), Integrity("sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW"), CrossOrigin("anonymous"), ) ``` Turns into ```html <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script> ``` Hint for whoever likes unpkg.com, adding `?meta` at the end of any script you import form them will give you the current `integrity` for the file. Example: https://unpkg.com/three@0.165.0/build/three.cjs?meta | ||||
| * | add script's integrity and crossorigin attributes | Julien Tant | 2024-06-05 | -0/+10 | |
|/ | |||||
* | Revert "Add Marquee element promotion to readme" | Markus Wüstenberg | 2024-04-29 | -2/+0 | |
| | | | | This reverts commit b33f84310916b238af0006fb151a4b980721bc33. | ||||
* | Add Marquee element promotion to readme | Markus Wüstenberg | 2024-03-13 | -0/+2 | |
| | |||||
* | Just call it HTML components in readme | Markus Wüstenberg | 2024-03-12 | -3/+3 | |
| | |||||
* | Fix wrong codecov (#166) | Markus Wüstenberg | 2024-02-09 | -0/+3 | |
|\ | | | | | | | We don't need coverage for the example code and internal testing helpers. | ||||
| * | Fix wrong codecov | Markus Wüstenberg | 2024-02-09 | -0/+3 | |
|/ | | | | We don't need coverage for the example code and internal testing helpers. | ||||
* | Test on Go 1.22 in CI (#165) | Markus Wüstenberg | 2024-02-09 | -0/+1 | |
|\ | |||||
| * | Test on Go 1.22 in CI | Markus Wüstenberg | 2024-02-09 | -0/+1 | |
|/ | |||||
* | Move logo in readme | Markus Wüstenberg | 2024-01-12 | -2/+2 | |
| | |||||
* | Create FUNDING.yml | Markus Wüstenberg | 2024-01-12 | -0/+2 | |
| | |||||
* | Fix logo size in readme | Markus Wüstenberg | 2024-01-12 | -1/+1 | |
| | |||||
* | Add logo to readme | Markus Wüstenberg | 2024-01-12 | -0/+2 | |
| | |||||
* | Test Go 1.21 in CI (#147) | Markus Wüstenberg | 2023-09-08 | -0/+1 | |
|\ | |||||
| * | Test Go 1.21 in CI | Markus Wüstenberg | 2023-09-08 | -0/+1 | |
|/ | |||||
* | Add "checked" bool attribute (#136) | Markus Wüstenberg | 2023-05-11 | -0/+5 | |
|\ | | | | | Fixes #127. | ||||
| * | Add "checked" bool attribute | Markus Wüstenberg | 2023-05-11 | -0/+5 | |
|/ | | | | Fixes #127. | ||||
* | Document Text/Textf helpers better (#135) | Markus Wüstenberg | 2023-05-11 | -4/+6 | |
|\ | | | | | | | | | Both in the readme and package doc. Fixes #133. | ||||
| * | Document Text/Textf helpers better | Markus Wüstenberg | 2023-05-11 | -4/+6 | |
|/ | | | | | | Both in the readme and package doc. Fixes #133. | ||||
* | Test with Go 1.20 in CI (#134) | Markus Wüstenberg | 2023-05-04 | -4/+5 | |
|\ | | | | | Fixes #129. | ||||
| * | Make version numbers strings in yaml | Markus Wüstenberg | 2023-05-04 | -5/+5 | |
| | | |||||
| * | Test with Go 1.20 in CI | Markus Wüstenberg | 2023-05-04 | -0/+1 | |
|/ | |||||
* | Add Step attribute (#126) | Markus Wüstenberg | 2023-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üstenberg | 2023-01-17 | -0/+10 | |
| | |||||
* | Remove year from LICENSE (#121) | Markus Wüstenberg | 2023-01-03 | -1/+1 | |
| | |||||
* | Upgrade codecov-action to v3 in CI (#119) | Markus Wüstenberg | 2022-11-15 | -1/+1 | |
| | |||||
* | Put .PHONY in front of each target in Makefile (#118) | Markus Wüstenberg | 2022-11-15 | -2/+4 | |
| | |||||
* | Rename master branch to main (#117) | Markus Wüstenberg | 2022-11-15 | -3/+3 | |
| | |||||
* | Add stroke-width SVG attribute (#116) | Markus Wüstenberg | 2022-11-15 | -6/+11 | |
| | |||||
* | Delete low-value helper components (#115) | Markus Wüstenberg | 2022-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üstenberg | 2022-11-03 | -2/+25 | |
| | | | Like `Raw`, but interpolates like `Textf`. | ||||
* | Add Go report card to readme (#111) | Markus Wüstenberg | 2022-10-17 | -1/+2 | |
| | | | Also fix godoc badge to point to pkg.go.dev. | ||||
* | Fix small typo occured -> occurred (#110) | Markus Wüstenberg | 2022-10-17 | -1/+1 | |
| | |||||
* | Add EncType html attribute (#109) | Markus Wüstenberg | 2022-09-29 | -0/+5 | |
| | |||||
* | Add generic Map implementation (#108) | Markus Wüstenberg | 2022-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üstenberg | 2022-09-21 | -2/+5 | |
| | |||||
* | Use output of strings.Builder in assert.Equal (#106) | Markus Wüstenberg | 2022-09-21 | -1/+1 | |
| | |||||
* | Make void elements a map (#103) | Markus Wüstenberg | 2022-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üstenberg | 2022-05-25 | -5/+11 | |
| | | | It hadn't been updated in a while. | ||||
* | Fix CI badge in Readme (#100) | Markus Wüstenberg | 2022-05-25 | -1/+1 | |
| | |||||
* | Update CI config (#98) | Markus Wüstenberg | 2022-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 license | Markus Wüstenberg | 2022-03-21 | -1/+1 | |
| | |||||
* | Use a test matrix with the last three stable Go versions (#96) | Markus Wüstenberg | 2022-03-21 | -14/+21 | |
| | |||||
* | Add http.Adapt function (#92) | Markus Wüstenberg | 2021-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üstenberg | 2021-10-06 | -6/+3 | |
| | | | Also set the new `-shuffle` flag when testing. | ||||
* | Mark the assert test helpers as such (#90) | Markus Wüstenberg | 2021-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 Algaba | 2021-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 readme | Markus Wüstenberg | 2021-06-18 | -0/+2 | |
| | |||||
* | Add Github action status badge to readme | Markus Wüstenberg | 2021-06-18 | -0/+1 | |
| | |||||
* | Add contributors file | Markus Wüstenberg | 2021-06-18 | -0/+9 | |
| |