[][src]Function sauron::prelude::view_if

pub fn view_if<MSG>(
    flag: bool,
    node: Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>
) -> Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>

A help function which render the view when the condition is met, otherwise just display a text("")