Hi, could you provide some real examples. As I understand I can do something like
import htmlTemplate from './template.html';
document.body.innerHTML = htmlTemplate;
Can you use some kind of variables in template? If it returns an ES6 template string, then you could be able to call htmlTemplate(data);
Hi, could you provide some real examples. As I understand I can do something like
Can you use some kind of variables in template? If it returns an ES6 template string, then you could be able to call
htmlTemplate(data);