Even after seeing the provided example, I still have difficult figuring
out what html2pats actually does.
Sorry! I probably have to devote some time to documenting it properly.
The tool translates a web page template (with embedded ATS expressions and
special directives) into an ATS function that outputs a web page with the
expressions computed and interspersed with literal HTML output. Works kind
of like a template engine, except it provides rendering functions
specialized to the templates given during compilation.