TryGhost / express-hbs

Express handlebars template engine with inheritance, partials, i18n and async helpers.
MIT License
458 stars 76 forks source link

registerAsyncHelper not working in hbs.compile #225

Open mindesik opened 3 years ago

mindesik commented 3 years ago
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

tflanagan commented 6 months ago

Can confirm this is not working.