It seems like that the default RazorViewEngine
in the asp.net mvc 5 framework, only look for EditorTemplate
in a folder named EditorTemplate
inside the Shared
folder. I am okay with that convention, the only thing I would like to add it search for EditorTemplate
in the Shared/EditorTemplates
and any folder inside if I place my EditorTemplate in ~/Views/Shared/EditorTemplates/SomeNewFolder
it would still find it.
How can I extend the RazorViewEngine
to tell razor to recursively look for any folder inside the EditorTemplates
folder when searching for EditorTemplate
?