So, there is a ES6 literal ` - backquote mark to make multiline strings with variables inside, and I need to use it with template, initially described in HTML.
<div id="template">${value}</div>
JS:
var value = 'Hello, world!'
var template = document.getElementById('template');
// Magic to convert DOM element to template string `<div id="template">${value}</div>`
console.log(element)
>>> <div id="template">Hello, world!</div>
So, I need something in "Magic" line)
eval:var template = eval("`" + document.getElementById('template').outerHTML + "`")