Adrian Hesketh
Adrian Hesketh
The issue is that you're expecting the slice to be a logical OR of the truth values per class, when class assignment (currently) behaves more like the `Object.assign` operator in...
I appreciate you giving it a proper go, and taking the time to raise good issues! Thanks a lot. It's good to hear what people run into when they start...
I'll pick up on your latest point tomorrow, but I noticed that the classnames library has a dedupe version which behaves just like my suggestion: ``` There is an alternate...
Yes, I think https://templ.guide/syntax-and-usage/css-style-management#dynamic-class-names needs a lot of examples added to show the expected outputs based on a set of inputs. I'll take that one on.
Did a quick test. ```go package main import ( "crypto/sha256" "fmt" "io" "log" "os" "time" "github.com/a-h/templ/generator" "github.com/a-h/templ/parser/v2" ) func main() { var err error var now time.Time now = time.Now()...
Fixed in https://github.com/a-h/templ/pull/366
I have no idea how to do this. It's probably a case of writing an autocmd to pipe through the `templ fmt` command instead of using the LSP API like...
So, do we need another docs update to close this off, or are we happy we've got enough info now?
Thanks for that!
Only reason was so that the functionality can be followed by reading from top to bottom, rather than reading the function, and holding it in your mind until you see...