Add callback after rendering

When dealing with one view/template, it's handy to execute additional logic after it has been rendered.