From 29ac5832b354cd3b8ced936248c77628e98a46d1 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 30 Jul 2025 13:34:01 -0300 Subject: client: templateContent: replace slots --- src/static/js/client-util.js | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/static/js/client-util.js b/src/static/js/client-util.js index 5a35bcf2..396c4889 100644 --- a/src/static/js/client-util.js +++ b/src/static/js/client-util.js @@ -37,7 +37,7 @@ export function cssProp(el, ...args) { } } -export function templateContent(el) { +export function templateContent(el, slots = {}) { if (el === null) { return null; } @@ -46,7 +46,25 @@ export function templateContent(el) { throw new Error(`Expected a