nakai/node
Types
pub type Node {
Comment(content: String)
Component(factory: fn() -> Node)
Element(tag: String, attrs: List(Attr), children: List(Node))
Fragment(children: List(Node))
LeafElement(tag: String, attrs: List(Attr))
None
Text(content: String)
}
Constructors
-
Comment(content: String) -
Component(factory: fn() -> Node) -
Element(tag: String, attrs: List(Attr), children: List(Node)) -
Fragment(children: List(Node)) -
LeafElement(tag: String, attrs: List(Attr)) -
None -
Text(content: String)
Functions
pub fn const_component(decl: fn() -> Node) -> Node