Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Allow for true HTML ID- and class shorthandsv2.0.0 | Thomas Voss | 2023-10-28 | 1 | -3/+3 |
| | |||||
* | Rename some tests | Thomas Voss | 2023-10-21 | 1 | -3/+3 |
| | |||||
* | Run ‘go fmt’ | Thomas Voss | 2023-10-21 | 1 | -2/+2 |
| | |||||
* | Add tests for the formatter | Thomas Voss | 2023-10-21 | 1 | -0/+258 |
| | |||||
* | Escape runes in class names | Thomas Voss | 2023-10-21 | 1 | -8/+12 |
| | | | | | | I cannot think of a single situation where you’d ever end up in this situation, and I also am not even sure if it’s even meant to be legal HTML. Better to be on the safe side I guess. | ||||
* | Fix printing classes and attrsv1.0.2 | jturtle | 2023-10-20 | 1 | -1/+1 |
| | | | | | | | | | Well well well, here we are again. Iterate over the `nClasses` list instead of every attr after printing the classes. With all due respect, you should consider writing a test suite to catch silly errors like this. | ||||
* | Don’t use lambdas, and just use a damn for-loop | Thomas Voss | 2023-10-10 | 1 | -9/+10 |
| | |||||
* | Remove whitespace | Thomas Voss | 2023-10-02 | 1 | -2/+0 |
| | |||||
* | Fix class/attribute mixup bug | jturtle | 2023-10-02 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | There's a bug in the current version of GSP where an element like this: p .class attribute="value" {-} would be transpiled as this: <p class="value" attribute="value"></p> The `classes` slice in `func printAttrs` (`formatter.go`, line 50) was the cause. I fixed it by making a deep copy of the `attrs` slice. I'm not a Go programmer, there might be a nicer way to make a deep copy of a slice. But it does, indeed, work. P.S. thanks for making this, writing HTML by hand is now slightly less painful! | ||||
* | Run ‘go fmt’ | Thomas Voss | 2023-09-11 | 1 | -9/+9 |
| | |||||
* | Add the ‘=’ node for whitespace trimming | Thomas Voss | 2023-09-11 | 1 | -0/+8 |
| | |||||
* | Add the ‘>’ node modifier | Thomas Voss | 2023-09-11 | 1 | -0/+4 |
| | |||||
* | Fix a panic | Thomas Voss | 2023-09-10 | 1 | -1/+1 |
| | |||||
* | Remove all XML support | Thomas Voss | 2023-09-10 | 1 | -22/+2 |
| | |||||
* | Rework some of the formatting- and parsing code | Thomas Voss | 2023-09-10 | 1 | -79/+88 |
| | |||||
* | Add primitive support for doctypes and XML | Thomas Voss | 2023-09-09 | 1 | -14/+41 |
| | |||||
* | Fix bug when key has no value | Thomas Voss | 2023-09-09 | 1 | -1/+1 |
| | |||||
* | Consistent code style | Thomas Voss | 2023-09-09 | 1 | -1/+1 |
| | |||||
* | Genesis commit | Thomas Voss | 2023-09-08 | 1 | -0/+104 |