#template #html #markup

html5ever-arena-dom

Parse templates, and tidy them up using html5ever

3 releases

0.1.2 Apr 22, 2023
0.1.1 Jun 5, 2022
0.1.0 Jul 30, 2021

#62 in #markup

29 downloads per month
Used in askama-plus-html5ever

MIT/Apache

20KB
410 lines

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.


lib.rs:

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.

Dependencies

~1.2–7.5MB
~33K SLoC