Open justinledouxweb opened 8 years ago
Hello
I have the same issue here!
I created a custom helper called "isequal" like so:
var hbs = exphbs.create({
defaultLayout: 'main',
helpers: {
isequal: function (arg1, arg2, options) {
return (arg1 == arg2) ? options.fn(this) : options.inverse(this);
}
}
})
I am getting this error message (at random times) Error: Missing helper: "isequal"
I have already tried rebooting the server app every 24h but to no avail.
Hi,
I am building a small tool that allows me to view a questionnaire in the browser, and then download the HTML file for offline viewing.
When I visit the questionnaire's page in a route handler that is using res.render(), it works perfectly:
But when I compile the files for download, my non-missing help is missing:
(by the way
handlebarsConfig.handlebars
contains the helpers. If Iconsole.log( hdb )
you can see the custom helpers there in the object).What is VERY weird, is that it was working fine yesterday, and now it's not... nothing has changed (damn computer ghosts!!)