Thats XSLT which is tragically being removed from browsers as we speak: https://developer.chrome.com/docs/web-platform/deprecating-x...
I say tragically, because XSLT was indeed the only sort-of workaround that was available for templating in the browser, even if it was limited to v1 rather than the much more useful v2 and v3.