({
take: [
{ key: "code", type: "code", label: "Handlebars" },
{ key: "data", type: "json", label: "Data" },
{ key: "escape", type: "toggle", label: "Escape characters" },
{
type: "import",
value:
"https://cdn.jsdelivr.net/npm/handlebars@4.7.7/dist/handlebars.min.js",
},
],
make: ({ code, data, escape }) => {
return [
{
type: "code",
value: Handlebars.compile(code, { noEscape: !escape })(data),
},
]
},
})