eta icon indicating copy to clipboard operation
eta copied to clipboard

Usage: App.locals

Open rubiin opened this issue 3 years ago • 1 comments

How does eta handle app.locals provided in expressjs following this: https://eta.js.org/docs/examples/express

when is set app.locals.someFunction = function(arg){ return "hello"+arg; }

and access it as <%= it.someFunction('mike') %> i get , someFunction is not defined

rubiin avatar Apr 16 '22 09:04 rubiin

@rubiin Hi, sorry for responding so late, but I am not able to reproduce this problem. My reproduction is here, though I do not commonly use Express, so it may not be the best.

shadowtime2000 avatar Jun 22 '22 08:06 shadowtime2000