Finishes templating and layout.