The template being inline is a bug, not a feature in my opinion. You can actually write arbitrary templates into HTML using <script type='text/template'> (or really any type other than 'javascript'), and with a simple function get ~90% of the power of template strings in languages such as ES6 or Python. Writing your templates into JS like that is plain ugly and unmaintainable.