diff --git a/application/source/dom/customelement.mjs b/application/source/dom/customelement.mjs index 2a3e69817dcbbbdbd2ffd3d14300e121ba9e0244..8e284f4c688f8b47c217bc4a726a4e7b7bc6bdd3 100644 --- a/application/source/dom/customelement.mjs +++ b/application/source/dom/customelement.mjs @@ -946,6 +946,11 @@ function initShadowRoot() { return this; } + const mapping = this.getOption("templateMapping", {}); + if (isObject(mapping)) { + html = new Formatter(mapping).format(html); + } + this.shadowRoot.innerHTML = html; return this; }