withBeforeRenderAction

Run a piece of code before the rendering is done.