Closed lloyd closed 12 years ago
Keep the global clean! And, I imagine express lets us define default function helpers to templates.
yes! @zcarter taught me this one:
res.local('cachify_js', cachify.cachify_js);
is all we would have to add to keep things going in browserid.
My bad. Please fix.
In BrowserID, we actually rely on this behavior (maybe accidentally?). In our templates we use cachify functions and we never actually pass them in.
I'd think it might be safer to not inject into the global namespace. I'd write a patch if you agreed, but what do you think?