TryGhost/express-hbs

registerAsyncHelper not working in hbs.compile

mindesik opened this issue · 1 comments

hbs.registerAsyncHelper('testAsync', (key, cb) => {
  cb('ok')
})

const t = hbs.compile('Hello {{testAsync}}')
console.log(t({}))

// Throws: Could not find resolver cache in async helper testAsync.

But works with hbs.registerHelper