Right now I need to write code like this:
html! {
<div
class=vec![
Some("thing"),
thing.new.as_some("new")
].iter().flatten().collect::<Vec<_>>()
/>
}
It'd be nice if I could just directly write
html! {
<div
class=vec![
Some("thing"),
thing.new.as_some("new")
]
/>
}
As well as the tuple version: class=((Some(thing), thing.new.as_some("new")).
https://github.com/yewstack/yew/pull/1085 ;)
I've never had negative time-to-implementation on a feature request before. :laughing: Amazing.
Sorry for the noise and thank you!
@djahandarie https://github.com/yewstack/yew/releases/tag/0.16.0 馃帀
Most helpful comment
@djahandarie https://github.com/yewstack/yew/releases/tag/0.16.0 馃帀