Adrian Hesketh
Adrian Hesketh
Fixed in merged PR https://github.com/a-h/templ/pull/1027
For clarity on this one, I assume the comment would have to only apply on a new line? For example, you wouldn't be able to do: ``` ``` Or: ```...
So, you've probably figured out that `templ fmt` formats templ files by parsing a template file into an object model, then writing it back out again. You can see that...
This is solved by https://github.com/a-h/templ/pull/1230
Fix merged in https://github.com/a-h/templ/pull/1230 - uses prettier to format CSS where available.
Thanks, I've been thinking about this, and I also came up with the `TEMPL_DEV_MODE` idea - that `templ generate --watch` should generate the same code for dev mode and prod...
From a quick benchmark (https://github.com/a-h/function-vs-variable-vs-if) ``` goos: darwin goarch: arm64 pkg: function-vs-variable-vs-if BenchmarkPlain-10 366917121 3.112 ns/op BenchmarkPlainVar-10 227294608 5.283 ns/op BenchmarkPlainConst-10 386069434 3.105 ns/op BenchmarkIfDev-10 90382713 12.13 ns/op BenchmarkIfProd-10 100000000...
New idea. Get each file to contain a list of strings constants (at the end of each file), each file would create its own variable name for the strings. ```go...
I've put together a draft PR at #1027 - it would be great if folks could try it out. It still uses `txt` files to store the code, but differentiates...
The Determinate Systems Nix installer works with SELinux since this https://github.com/DeterminateSystems/nix-installer/issues/124 I've tested the installation and usage with Fedora and Rocky 8 today using a Lima VM. ``` adrian-hesketh@lima-nix-airgapped-vm ~]$...