buff that gleam lustre output to a real shine! (by removing as much "optional" markup as possible)
Gleam 100.0%
2 1 1

Clone this repository

https://tangled.org/bthom.tngl.sh/buff
git@tangled.org:bthom.tngl.sh/buff

For self-hosted knots, clone URLs may differ based on your setup.

README.md

buff#

Buff your lustre output to a real shine! By removing as much "optional" markup as possible. It does this by omitting opening and closing tags if the browsers' error handling algorithms would automatically generate the same DOM. It also uses houdinis_publicist for attributes.

This isn't added to Hex, so you'll have to add it as a git dependency in your gleam.toml:

buff = { git = "https://tangled.sh/@bthom.tngl.sh/buff", ref = "v1.0.0" }

Please let me know if you discover any issues with this not generating the expected DOM, and let me know if you have any other ideas for other ways to cut down on the generated HTML.

Note, this depends on lustre internals, so for the time being has a very narrow range of lustre that it supports to be sure that everything will work. I don't know how this'll change going forward.