Added getTemplateByName()