Handlebar "References" not working in xlsx with #each
-
I am trying to use handlebar syntax in an xlsx file. I have a nested object and would like to use
{{#each collection1 as |_myItem|}} so later I can refer to _myItem. When I enter this into xlsx i get the error
This is very easy to replicate the error if you use your invoice xlsx project in the playground. All you have to do is change this cell
to use the reference.
-
Thank you for reporting. The block parameters aren't currently supported. I've submitted the task to the backlog.
You can follow it here
https://github.com/jsreport/jsreport/issues/1171However, this shouldn't be blocking you. I mean it is just syntax sugar and you should be able to code the template also without block parameters.