With the HTML web components, I understand I can set their HTML code with:
this.innerHTML = `<h1></h1>`;
The problem I have with this is I miss out on the convenience of Emmet Abbreviation and if I'm making a lot of components, this slows me down.
I need a function which returns the HTML file as a string so I can make it equal to the innerHTML like this:
this.innerHTML = getHTML("myfile.hmtl");
How can this be done?