4: Adding modern templates and preparing for remote usage

This commit is contained in:
metacryst
2023-12-03 23:39:36 +00:00
parent 38678b703a
commit e417df949a
4 changed files with 112 additions and 92 deletions

28
el.js Normal file
View File

@@ -0,0 +1,28 @@
class Index extends HTMLElement {
css = /*css*/ `
index-el {
}
`
html = /*html*/ `
`
constructor() {
super();
addStyle(this.css);
this.innerHTML = this.html;
}
connectedCallback() {
}
}
customElements.define('index-el', Index);
export default Index;