Expand description
A simple library to parse templates, and tidy them up using html5ever.
This library simply extracts and combines two usage examples of html5ever, and makes them re-usable. It is mostly meant to be used with template engines such as Askama or nate, which use fmt::Write to output their generated HTML data.
Structs§
- Arena
Sink - Sink struct is responsible for handling how the data that comes out of the HTML parsing unit (TreeBuilder in our case) is handled.
- Arena
Sink Parser - A wrapper for
Parser<ArenaSink<'_>>
that implements fmt::Write and io::Write. - Node
- DOM node which contains links to other nodes in the tree.
- Tidy
Template askama
Traits§
- Tidy
Template Ext askama
- Extension trait to wrap a
Template
inTidyTemplate
.