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().
Hey mate. I have used Handlebar as a client side templating in one of my side project. I was banging my head once. Then templating has helped me a lot during DOM Manipulation.
I think without templating we cannot make our DOM manipulation easily, but still we can make it. Whatever application you build DOM manipulation will takes place.
If you prefer to go with any frameworks or library, they will have their own templating. For example Django a python's web framework has their own template language.
So I hope everyone will use templating.
Vladimir Kyuchukov
Web/Mobile Dev
But why? You've got React, Vue, Angular...