(How) can I use dynamicHelpers with extend parameters like this?
app.dynamicHelpers({
getImageUrl: function (req, res, imageName) {
return "http://" + req.headers.host + app.set("imageUrl")+"/" + imageName;
}
});
how can I call this from my template engine?
You return a function from your function:
In your template, you use
getImageUrl("some image.jpg").