Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

registerAsyncHelper not working in hbs.compile #225

Open
mindesik opened this issue Apr 20, 2021 · 1 comment
Open

registerAsyncHelper not working in hbs.compile #225

mindesik opened this issue Apr 20, 2021 · 1 comment

Comments

@mindesik
Copy link

mindesik commented Apr 20, 2021

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
Copy link

Can confirm this is not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants