in Express 3, they excluded the concept of dynamic assistants. I believe that passing functions to the template through app.locals is actually the recommended way to do it now. I suppose you already know how, but for someone else with the same question:
in your app.js: app.locals.myFunc = function(arg){...} in your template: <%= myFunc(objectState.data[0]) %>
Jason black
source share