How Templates Work