[−][src]Function sauron::html::html_element
pub fn html_element<MSG>(
tag: &'static str,
attrs: Vec<Attribute<&'static str, &'static str, AttributeValue, Event, MSG>>,
children: Vec<Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>>
) -> Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>
creates an html element, where the first argument: tag is the html element tag. Example:
ⓘThis example is not tested
html_element("div", vec![class("container")], vec![])