[][src]Function sauron::prelude::html::html_element

pub fn html_element<MSG>(
    tag: &'static str,
    attrs: Vec<Attribute<&'static str, &'static str, AttributeValue, Event, MSG>, Global>,
    children: Vec<Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>, Global>
) -> 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:

html_element("div", vec![class("container")], vec![])