use crate::*;
#[derive(Clone, Debug)]
pub(crate) enum HtmlNode {
Element(HtmlElement),
Text(String),
Expr(Expr),
Dynamic(Expr),
If(HtmlIf),
Match(HtmlMatch),
For(HtmlFor),
DynamicTag(HtmlDynamicTag),
}
#[derive(Clone, Debug)]
pub(crate) enum HtmlAttrKey {
Static(Ident),
Dynamic(proc_macro2::TokenStream),
}
#[derive(Clone, Debug)]
pub(crate) enum HtmlAttrValue {
Expr(Expr),
If(HtmlAttrIf),
Style(Vec<(String, HtmlStylePropValue)>),
Classes(Vec<HtmlAttrValue>),
Styles(Vec<HtmlAttrValue>),
}
#[derive(Clone, Debug)]
pub(crate) enum HtmlStylePropValue {
Literal(String),
Expr(Expr),
If(HtmlAttrIf),
}