Closed thejollyrogers closed 9 years ago
I feel like we should put getNamespace()
behind a helper function. Could we do something like the following sample work?
stex.cls().get("requestId")
:+1:
:+1:
One question: Let's say a developer wants to create a new namespace for his/her app (app is using stex). What happens when he creates a new namespace and bind it to the req
and res
(these are the same objects as in stex). Will it work? Maybe we should open it and allow devs to use this API?
Edit: I think it's very similar (or even the same) idea to what Scott's explained.
@nullstyle pulled in core cls stuff into cls.js @bartekn i've added a config value so that apps can provide their own namespace name
:+1: