diff options
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 |
commit | 44470550260a16b361984ec43b71d65735d6f509 (patch) | |
tree | 7fd42fafe0c5d0f20cf258912b1926f7da714fc4 /src | |
parent | aaff2762abd84850286c15638594daf09039a460 (diff) |
content: generateUnsafeMunchy
Diffstat (limited to 'src')
-rw-r--r-- | src/content/dependencies/generateUnsafeMunchy.js | 10 |
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), +}; |