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
Hello, thank you for this nice tool, it helped us a lot.
I'm stumbled on a problem with the each-helper.
It ignores the Empty-String property. When you iterate thru an object like this
{ "": "Please Select" , "adult": "Adult", "teenager": "Adolescents aged 13 - 18 years", "child": "Children under 12 years" }
The first option with the empty string as key will be ignored. To fix this I changed in handlebars.runtime-v3.0.3.js the two lines 325 and 332 from
if (priorKey) {
to
if (priorKey !== undefined) {
So it works fine for me.
Nice regards Stephan
The text was updated successfully, but these errors were encountered:
Thanks for the report. Will have this fixed by the next release.
Sorry, something went wrong.
each
with
1bb640b
Allow empty key name in each iteration
eb8920e
Fixes handlebars-lang#1021
No branches or pull requests
Hello,
thank you for this nice tool, it helped us a lot.
I'm stumbled on a problem with the each-helper.
It ignores the Empty-String property. When you iterate thru an object like this
The first option with the empty string as key will be ignored.
To fix this I changed in handlebars.runtime-v3.0.3.js the two lines 325 and 332 from
to
So it works fine for me.
Nice regards
Stephan
The text was updated successfully, but these errors were encountered: