pass controller and request to viewhook implicitly refs #1416
pass controller/request only when these are available refs #1416