Add special case for templates to render script
This commit is contained in:
parent
f740bf3957
commit
48db8c49f2
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue