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 initially raised this against expressjs, but the guys there indicate it might be a problem with hjs - expressjs/express#1833
The problem is that expressjs makes res.locals available to view engines as a function, so given locals like { name: "steve" }, simply writing {{name}} in a hjs template does not produce the expected result. Possibly I could invoke it as a lambda? I'm not sure - i'm new to this - but even if I could that's inconvenient (and libraries like connect-cachify don't work because of this problem).
The text was updated successfully, but these errors were encountered:
I initially raised this against expressjs, but the guys there indicate it might be a problem with hjs - expressjs/express#1833
The problem is that expressjs makes res.locals available to view engines as a function, so given locals like { name: "steve" }, simply writing {{name}} in a hjs template does not produce the expected result. Possibly I could invoke it as a lambda? I'm not sure - i'm new to this - but even if I could that's inconvenient (and libraries like connect-cachify don't work because of this problem).
The text was updated successfully, but these errors were encountered: