Open leomorpho opened 3 weeks ago
You can try without the two percentage signs after d, I think it is a mistype.
css loading(percent int) { width: {fmt.Sprintf("%d", percent) }; }
It works for me, I have some similar code. Hope it helps
@leomorpho I tried to recreate the error but could not. I pasted it into https://play.templ.guide/ and had no issue.
@leomorpho I had this issue with v0.2.408
. I installed the latest version via go install github.com/a-h/templ/cmd/templ@latest
, bringing me up to v0.2.731
, and the error appears to have cleared up!
Not sure what I'm missing, but when using a parameterized css function, it fails using templ v0.2.707.
The above gives me
css expression: found unexpected parameters
. I must be doing something wrong because this is an example from the docs, but I can't figure out what that is...any ideas?