Renamed exports -> public.
Let res.view accept another object which gets exposed to the browser.