« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/html.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/util/html.js b/src/util/html.js
index b49cce03..26dd6495 100644
--- a/src/util/html.js
+++ b/src/util/html.js
@@ -785,7 +785,13 @@ export class Template {
       slots[slotName] = this.getSlotValue(slotName);
     }
 
-    return this.description.content(slots);
+    // Get outta here with that recursive Template bollocks!
+    const content = this.description.content(slots);
+    if (content instanceof Template) {
+      return content.content;
+    } else {
+      return content;
+    }
   }
 
   set description(_value) {