Use the new LayoutController to manage layout and template rendering.