You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i did a quick research and found out that jade does not provide a registerHelpers function. jade expects all the helpers in the local scope. this explains why that was the only way to add i18n support:
req.response.source.context.__ = function (string) {
return i18n.__(string);
};
when i define a a helpersPath i get undefined is not a function when requesting a page.
i named my helper file test.js and exported a simple function
and in my template i called the function
test()
i'm not quite sure if i made a mistake when implementing it, or if its an jade related issue.
The text was updated successfully, but these errors were encountered: