Please support conditional html elements by allowing Option<VNode> inside the html macro, so that the following compiles:
html! {
<div>
{
condition.then(|| html! {
<span>{"foo"}</span>
})
}
</div>
}
(This example uses bool::then to turn a bool into an Option<VNode> but that's just an example how I use it.)
Please support conditional html elements by allowing
Option<VNode>inside thehtmlmacro, so that the following compiles:(This example uses
bool::thento turn aboolinto anOption<VNode>but that's just an example how I use it.)