Support multiple classes in a single literal in classes! macros #1870
therustmonk
started this conversation in
Ideas
Replies: 1 comment
-
|
You can use macro like: html! {
<div class=classes!("many", "so-many", "bootstrap", "classes", option) />
}I think the macro should take each class individually, instead of allowing multiple classes to be passed as one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I like all the improvements of
0.18.0. Thanks to EVERYONE who did that 💘During porting my super huge
rillrateproject to the Yew0.18.0I've found that I have to split a lot of classes to separate literals, but before was possible to use multiple classes in a string like:With
0.18.0I have to split them all or use the following workaround:I guess it's not so effective and at least it's not so pretty.
How about to allow to parse multiple classes during compilation of to add
Classes::fromworkaround to that?Or maybe I missed some features? 😃
Beta Was this translation helpful? Give feedback.
All reactions