Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use Handlebars object in jsreport.exe #277

Closed
pofider opened this issue Mar 30, 2017 · 1 comment
Closed

Unable to use Handlebars object in jsreport.exe #277

pofider opened this issue Mar 30, 2017 · 1 comment
Labels

Comments

@pofider
Copy link
Contributor

pofider commented Mar 30, 2017

The Handlebars global object is normally exposed to the helpers global scope and can be used to call other helpers for example. This works in the full installation but not in the compiled version. Also using var Handlebars = require('handlebars') doesn't help

{{helperA}}
function helperA() {
    return  Handlebars.helpers.helperB()
}

function helperB() {
    return 'bbbbbbbb'
}

original report - https://forum.jsreport.net/topic/36/unable-to-find-module-handlebars

@pofider pofider added the bug label Mar 30, 2017
pofider added a commit to jsreport/jsreport-handlebars that referenced this issue Apr 3, 2017
@pofider
Copy link
Contributor Author

pofider commented Apr 3, 2017

Fixed in jsreport-handlebars@1.1.1
Will be part of the next jsreport release.

@pofider pofider closed this as completed Apr 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant