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

    0_1725627498552_upload-a67b1c92-c48a-4e47-a659-9f60da078a94

    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
    0_1725627579438_upload-b1ffbe5e-30e7-485f-9479-053c0b18c4b1 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/1171

    However, 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.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.