Injects hook function into Express view rendering pipeline to post-process generated HTML output.