【问题标题】:i am gitting following error while rendring template in jsreport studio我在 jsreport studio 中渲染模板时出现以下错误
【发布时间】:2017-03-22 00:26:30
【问题描述】:

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)

【问题讨论】:

    标签: jsreport


    【解决方案1】:

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

    切换引擎或使用#each

    【讨论】:

      猜你喜欢
      • 2017-09-05
      • 1970-01-01
      • 1970-01-01
      • 2018-02-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多