Closed boedlen closed 10 years ago
I'm able to do what i want with app.locals, so there probably isn't an issue anyway :-)
var app = express();
app.locals({
Categories: GlobalSettings.Categories
})
This a limitation in Handlebars. You can use subexpressions to call helpers in a tested fashion.
Hi Eric,
First off, Great job on the module. I really enjoy it, but i have a problem that i think might be a bug :-)
I have a template where i loop over some categories like this:
This works great if i render my view like this:
But if i define a helper method that return the same array of Categories it doesn't work is i expect:
When i add the array as a helper method my output is rendered like this:
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Can i only return flat types from a helper method?