How to use xlxs template with jsrender?
-
This works with handlebars:
{{#xlsxAdd "xl/worksheets/sheet1.xml" "worksheet.sheetData[0].row"}} <row> <c><v>test</v></c> </row> {{/xlsxAdd}} {{{xlsxPrint}}}
I can't get xlsxPrint to work with
jsrender
. How should the syntax be for this? I tried the following:{{xlsxAdd "xl/worksheets/sheet1.xml" "worksheet.sheetData[0].row"}} <row> <c><v>test</v></c> </row> {{/xlsxAdd}} {{{xlsxPrint}}}
And got:
Error while executing templating engine. Syntax error Unmatched or missing {{/xlsxPrint}}, in template: {{xlsxAdd \"xl/worksheets/sheet1.xml\" \"worksheet.sheetData[0].row\"}} <row> <c><v>test</v></c> </row> {{/xlsxAdd}} {{{xlsxPrint}}}
-
I got it working by just winging it. Is the below correctly written?
{{xlsxAdd "xl/worksheets/sheet1.xml" "worksheet.sheetData[0].row"}} <row> <c><v>test</v></c> </row> {{/xlsxAdd}} {{xlsxPrint}} {{/xlsxPrint}}