Added "templates" handling in View handler