From 9c8be1a2641e389ab9510af769297c78a6f4a40e Mon Sep 17 00:00:00 2001 From: zutto Date: Sat, 15 Jun 2024 14:05:34 +0300 Subject: [PATCH] rm hmtl.js --- src/html.js | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 src/html.js diff --git a/src/html.js b/src/html.js deleted file mode 100644 index c6742f8..0000000 --- a/src/html.js +++ /dev/null @@ -1,24 +0,0 @@ -class html { - constructor() { - this.html = ''; - } - - - async loadingStart(element) {} - - async loadingEnd(element) {} - - async render(element, content) { - var template = '%s'; - if (element.hasAttribute('html-template')) - template = element.getAttribute('html-template'); - else if (element.hasAttribute("template")) { - template = element.innerHTML; - element.setAttribute('html-template', template); - } - - element.innerHTML = template.replace('%s', content); - } -} - -