xlsxReplace Dynamic
-
I am trying to make a function dynamic, but get different error in different trial. Following is the line which I am trying to make dynamic.
{{#xlsxReplace "xl/worksheets/sheet1.xml" "getXML(0, 10)"}}
But I get this error when I try to use it.
Error while executing templating engine. Unexpected token }.
107 | function evalGet (obj, path) {
108 | var fn = 'return obj' + (path[0] !== '[' && path[0] !== '.' ? '.' : '') + path
109 | return new Function('obj', fn)(obj)
| ^
110 | }
111 |
112 | function evalSet (obj, path, val) {
SyntaxError: Unexpected token }
at new Function (<anonymous>)
at evalGet (evaluate-template-engine-helpers.js:109:12)
at Object.replace (evaluate-template-engine-helpers.js:123:20)
at Object.<anonymous> (evaluate-template-engine-helpers.js:429:17)
at eval (eval at createFunctionContext (D:\graniteshares\jsreportapp\node_modules\handlebars\dist\cjs\handlebars\compiler\javascript-compiler.js:257:23), <anonymous>:5:102)
-
Please provide a playground simple demo so we can take a look.