From ed55527ca510cd93bb035e3466e30ed6197928d9 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 2 Aug 2023 17:44:10 -0300 Subject: infra: html: make deeper layers of Template content translucent --- src/util/html.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/util') 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) { -- cgit 1.3.0-6-gf8a5