Pass 'viewPath' to route handlers