I'm currently working in a complex project without a transpiler so unfortunately I can't use any es6 syntax. What is the best practice (performance, readability, maintainability, etc.) for building HTML strings in a JS file.
Currently I'm doing it like this:
var someHTML = [
'<div id="item-1">foo</div>',
'<div id="item-2">bar</div>'
].join('\n');
[EDIT] I realize similar questions have been asked, but to clarify, I'm going specifically for HTML (ability to compose and read like regular HTML is important) and I would rather not rely on jQuery. When I say best practice, I realize there's more than one "right" answer, rather I would like to explore opinions and tradeoffs between patterns.