Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Presenter: added onRender event #219
Added new onRender event, right after beforeRender and before actual render happends (as put it before beforeRender and called it onRender is confusing)
If we want to use traits in project, and mainly in extensios, there should be easy way, how to push somethink into template, but only if template is used. We have onStartup and onShutdown methods, but they are not ideal for this, as onStartup is called even if no reder is performed, so if i add somethink to template there, it will cost me time of template creation, that will never use if redirect is called.
We have beforeRender and afterRender, but that is only methods, so we can modify them with trait.
I suggest new onRender method, that is called right after beforeRender, before render happends (if we called it onBeforeRender, we can put it before beforeRender method, but for i belive onRender is self describe so everybody will understand that.