handle case where template name explicitly provided in the route definition