« get me outta code hell

content: generateUnsafeMunchy - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-10-19 22:20:36 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-11-02 22:25:47 -0300
commit44470550260a16b361984ec43b71d65735d6f509 (patch)
tree7fd42fafe0c5d0f20cf258912b1926f7da714fc4 /src
parentaaff2762abd84850286c15638594daf09039a460 (diff)
content: generateUnsafeMunchy
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateUnsafeMunchy.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/content/dependencies/generateUnsafeMunchy.js b/src/content/dependencies/generateUnsafeMunchy.js
new file mode 100644
index 00000000..c11aadc7
--- /dev/null
+++ b/src/content/dependencies/generateUnsafeMunchy.js
@@ -0,0 +1,10 @@
+export default {
+  extraDependencies: ['html'],
+
+  slots: {
+    contentSource: {type: 'string'},
+  },
+
+  generate: (slots, {html}) =>
+    new html.Tag(null, null, slots.contentSource),
+};