Please allow for using path names when using Editor or Display templates as you can currently do with views. Example: when using a View or Partial View can use the following path name "~/myfolder/myview.cshtml". This should work also when setting up Editor or Display templates as well.
The VirtualPathViewEngine has logic in the 'GetPath' method that detectes leading "~/" or "/" in the view name and bypasses the view locations for a path. All that would be needed is the same kind of detection in the TemplateHelpers.ExecuteTemplate method. Currently the method always appends "EditorTemplates/" or "DisplayTemplates/" regardless of if a path is specified.
The VirtualPathViewEngine has logic in the 'GetPath' method that detectes leading "~/" or "/" in the view name and bypasses the view locations for a path. All that would be needed is the same kind of detection in the TemplateHelpers.ExecuteTemplate method. Currently the method always appends "EditorTemplates/" or "DisplayTemplates/" regardless of if a path is specified.