Add special case for templates to render script

This commit is contained in:
Talia 2021-02-22 18:37:09 +01:00
parent da2f082939
commit 24ee30f72d
No known key found for this signature in database
GPG Key ID: AD727AD22802D0D6
1 changed files with 1 additions and 0 deletions

View File

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