Get the layout from res.locals