zachleat@zachleat.com’s Mastodon Archive

Reply

@heydon whew, you’re in deep! this might do it, reusing the Nunjucks context from the filter? warning that this.ctx is a Nunjucks only thing

const fn = await (rm.compile(string, 'njk,md'));
return fn(this.ctx);