Associates templates with views.