Add special case for templates to render script

This commit is contained in:
Talia 2021-02-22 18:37:09 +01:00
parent f740bf3957
commit 48db8c49f2
Signed by: darkwiiplayer
GPG key ID: 7808674088232B3E

View file

@ -8,6 +8,7 @@ const parseAttribute = (attribute) => {
}
const parseArgs = (element, args) => {
if ("content" in element) element = element.content
for (arg of args)
if (typeof(arg) == "string")
element.appendChild(document.createTextNode(arg))