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

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))