4 comments

[ 4.7 ms ] story [ 21.2 ms ] thread
Very similar to j2html for Java (https://j2html.com/). Many other similar approaches, latest being JSX on the client side.

Personally, I much prefer this approach to using some limited template language to generate HTML.