MvcContentRenderer should consider the TemplateModel Path before trying to determine through Name and Tags


I'm playing around with TemplateModels and TemplateTypeCategories.MvcPartialView and I have noticed that before selecting the view set on my TemplateModel.Path, MvcContentRenderer tries to determine my view by first looking for a TemplateModel.Name and the current Tag and secondly by only TemplateModel.Name

MvcContentRenderer first also checks whether the TemplateModel.Name is null or empty, but by default the TemplateModel gets the same name as the ModelType so I can't override this behavior by not declaring a TemplateModel.Name.

If I have set this myself in TemplateModel.Path I expect this to be the primary path.

Dec 28, 2014 22:38
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.