Expand description
DOM tree node definitions for HTML rendering
These objects store the data about the DOM nodes we create, as well as some
extra data. They can then be transformed into real DOM nodes with the
to_node
function or HTML markup using to_markup
.
Structs§
- Anchor
- Anchor element with hyperlink
- Anchor
Builder - Use builder syntax to set the inputs and finish with
build()
. - Img
- Image embed element
- Line
Node - SVG line node
- Path
Node - SVG path node
- Span
- Span wrapping other DOM nodes with generic child type
- Span
Builder - Use builder syntax to set the inputs and finish with
build()
. - SvgNode
- SVG node for rendering stretchy wide elements
- SvgNode
Builder - Use builder syntax to set the inputs and finish with
build()
. - Symbol
Node - Symbol node containing information about a single symbol
- Symbol
Node Builder - Use builder syntax to set the inputs and finish with
build()
.
Enums§
- Html
DomNode - Recursive HTML DOM node enum with tuple variants
- SvgChild
Node - SVG child node types
Functions§
- create_
class - Create an HTML className based on a list of classes. In addition to joining with spaces, we also remove empty classes.
- to_
markup - Convert into an HTML markup string
Type Aliases§
- DomSpan
- Span wrapping other DOM nodes
- Html
DomFragment - Document fragment containing HTML DOM nodes