Closed nicklan closed 8 years ago
Thanks for reporting. This seems to be an issue with the each
helper. I will look into it.
This should be fixed in handlebars 0.11.2. Please run cargo update
and test again. Thanks!
yep, seems to work. thanks for the super fast response!
Shown by the following example:
Add the following two files to the examples and examples/templates as array.rs and array.hbs respectively:
The output will have all nulls for the sub-teams, even though it will print four lines with all null, so it is iterating over the right thing. More simple tests of array iteration seem to work, so I suspect something about the complexity of the json being passed is breaking things.
Accessing the sub-team array as just [1] also doesn't work.