1use crate::vdom;
3
4pub use crate::vdom::{element, element_ns};
5pub use tags::commons;
6pub use tags::commons::*;
7pub use tags::special;
8pub use tags::special::*;
9
10pub mod attributes;
11pub mod tags;
12
13pub const SVG_NAMESPACE: &str = "http://www.w3.org/2000/svg";
15
16pub fn svg_element<MSG>(
26 tag: &'static str,
27 attrs: impl IntoIterator<Item = vdom::Attribute<MSG>>,
28 children: impl IntoIterator<Item = vdom::Node<MSG>>,
29) -> vdom::Node<MSG> {
30 crate::html::html_element(Some(SVG_NAMESPACE), tag, attrs, children, false)
31}