Does it work really? I tried modifying the code here css.TailwindCSS where {{ else }} {{ with . | fingerprint }} appears, to {{ else with . | fingerprint }} but it throws an error.
Error: template: 404.html:17: unexpected <with> in input
yes it works, if you use the else with for a with clause and not an if clause
{{ with . | css.TailwindCSS $opts }}
{{ if hugo.IsDevelopment }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ else }} <-- That's the else for the if clause, not the with
{{ with . | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{ end }}
{{ end }}
{{ end }}
Probably. And if that’s the case, versions of Hugo compiled before Go 1.23 was available, will not contain features of Go 1.23. Hugo versions published after Go 1.23 is available, will be compiled with it and thus contain the features available with that Go version.