We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using inline partial as shown here I get an error:
Error: The partial myPartial could not be found
It works if I use the regular handlebars object instead.
Code:
const handlebars = require('handlebars'), asyncHelpers = require('handlebars-async-helpers') const hb = asyncHelpers(handlebars) hb.registerHelper('sleep', async () => new Promise((resolve) => { setTimeout(() => resolve('Done!'), 1000) })) async function main() { const template = hb.compile(` {{#*inline "myPartial"}} {{firstname}} {{/inline}} {{#each people}} {{> myPartial this}} {{/each}} `); const result = await template({ people: [ {firstname: "Nils"}, {firstname: "Yehuda"}, ], } ); console.log(result); } main();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using inline partial as shown here I get an error:
It works if I use the regular handlebars object instead.
Code:
The text was updated successfully, but these errors were encountered: