Rendering templates with actions and routes