« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-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),
+};