If it counts, I use the template literals feature of ES6: developer.mozilla.org/en-US/docs/Web/JavaScript/R…
I use it when I'm working with vanilla JS, where a framework like React would be overkill. However, I use template literals in a similar fashion:
const message = 'Click me!'
const button = `
<button class="btn">
${message}
</button>
`
document.querySelector('#button').innerHTML = button
The nice aspect of template literals is that it's a standard and any developer with ES6 knowledge will understand what is going on. You can also do pretty much anything that JS can, such as loops with Array.map() and Array.join().
Sunny Singh
Creating Content & Code