rustolio_web/elements/html/
mod.rs1mod attributes;
12
13use super::Element;
14
15pub use attributes::{Attribute, AttributeValue, Attributes, Listener, ListenerExt};
16
17#[doc(hidden)]
18pub use attributes::traits;
19
20pub struct HtmlTag {
21 pub tag: &'static str,
22 pub attributes: Attributes,
23 pub children: Vec<Element>,
24}
25
26impl HtmlTag {
27 #[doc(hidden)]
29 pub fn new(tag: &'static str, attributes: Attributes, children: Vec<Element>) -> Self {
30 HtmlTag {
31 tag,
32 attributes,
33 children,
34 }
35 }
36}