Closed augustebaum closed 1 year ago
The css!
macro implements a DSL for css, and so it does not expect arbitrary expressions in the place of the string literal (the latter can be parsed at compile time, which is what is happening, the former can't). For more on the supported syntax, read the macros module docs.
Hi,
I'm trying to use
stylist
to manipulate CSS dynamically in myyew
Component
.In the
view
method I'd like something like this:which gives me the following error:
But replacing the variable by its definition works just fine:
Can anyone explain what is going on here?