我在jsreport studio中重新发送模板时会出现以下错误

时间:2017-03-20 07:07:24

标签: jsreport

jsreport问题。我在设计模板期间在本地计算机上收到此错误。我不明白这个问题。请让我知道这是什么问题。

{{/for}}
-----------------------^ Expecting 'EOF', got 'OPEN_ENDBLOCK' Error: Parse error on line 206:
                        {{/for}}
-----------------------^ Expecting 'EOF', got 'OPEN_ENDBLOCK'
     at Object.parseError (/home/amar/pureSpectrumJsReport/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js:267:19)
     at Object.parse (/home/amar/pureSpectrumJsReport/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js:336:30)
     at HandlebarsEnvironment.parse (/home/amar/pureSpectrumJsReport/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js:46:43)
     at compileInput (/home/amar/pureSpectrumJsReport/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:514:19)
     at ret (/home/amar/pureSpectrumJsReport/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:523:18)
     at /home/amar/pureSpectrumJsReport/node_modules/jsreport-handlebars/lib/handlebarsEngine.js:26:14
     at evalmachine.<anonymous>:1:41
     at ContextifyScript.Script.runInContext (vm.js:35:29)
     at ContextifyScript.Script.runInNewContext (vm.js:41:15)
     at Object.exports.runInNewContext (vm.js:72:17)

1 个答案:

答案 0 :(得分:0)

您似乎在jsrender引擎上使用handlebars语法。

切换引擎或使用#each