-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for "global" filters #123
Comments
It should be possible to do this using controller inheritance, which is viable now in 0.4, but hasn't been documented yet. If you have another proposal for solving this, I'd be happy to consider it! Sent from my iPhone
|
Didn't know that existed! Inheritance sounds perfect. I just took a glance at |
Take a look at instantiators/constructor.js (I think) Sent from my iPhone
|
Do you plan on releasing a changelog or updated docs for the latest release? I wasn't aware that controller inheritance had been added! |
Eventually, yes. But no definitive timeline. Sent from my iPhone
|
There should be a "nice" way to have something run before all actions. For example, say I'm using
connect-flash
. I'd want to pass flash messages into every page, so it gets rather repetitive to have this in every controller:I suppose something like this could be put in the middleware initializer, but in my mind initializers should represent application setup, not logic.
If you agree, I'd be happy to submit a pull request!
The text was updated successfully, but these errors were encountered: