Nodejs EJS helper functions?
Yes, in Express 3 you can add helpers to app.locals. Ex: app.locals.somevar = “hello world”; app.locals.someHelper = function(name) { return (“hello ” + name); } These would be accessible inside your views like this: <% somevar %> <% someHelper(‘world’) %> Note: Express 2.5 did helpers differently.