html/parser
Types
Attr
The static part of a template, which can be created at compile time from the string parts of the template literal. The static HTML template string. The steps needed to walk the instantiated DOM to insert values at holes. Hole info extracted from the walk, with traversal steps filtered out. The number of top-level DOM nodes this template produces.
Static(Str, Option<Str>)
Dynamic(Str)
ParsedTemplate
Element(Str, List<Attr>, List<ParsedTemplate>)
ParsedText(Str)
ParsedHole
StaticTemplate
Functions
parse
fn(strings: Array<Str>) -> Result<StaticTemplate, Str>
parse_html
fn(html: Str) -> List<ParsedTemplate>
Parse a rendered HTML string (no holes) into a list of nodes.