@nprofile1q... I'm not going to stand here and say it's a good solution, because clearly we have abandoned this workflow before modern web devtools.
But I use XML as the source of my webpage, and it uses an attached XSLT stylesheet to generate the HTML representation.
It runs directly in the browser, so no build step needed. And it's a web standard, so no JS required to do this either.
And while XML might set off alarms on some people's brains, XSLT as a template library on top of it is surprisingly good. The query language is sufficiently powerful, rather than being a strict "drill down a tree-of-objects" you can pull info form anywhere in the source document. So you can genuinely organize your source document to be semantically interesting or easy to edit, without worrying about how to feed it to the template engine.