Very similar to j2html for Java (<a href="https://j2html.com/" rel="nofollow">https://j2html.com/</a>). Many other similar approaches, latest being JSX on the client side.<p>Personally, I much prefer this approach to using some limited template language to generate HTML.