Call beforeRender/afterRender with the render arguments