Method | Description | |
---|---|---|
FindPartialView ( ControllerContext controllerContext, string partialViewName, bool useCache ) : System.Web.Mvc.ViewEngineResult |
If we're not rendering in an rebel context this will exit NOTE: If someone has a lot of packages installed, the number of folders being searched will be fairly insane it would be good if VirtualPathProviderViewEngine exposed its members for path finding but they are all marked as private, so we could either copy all of its code in here or find another nice way to avoid having to lookup so many folders. We could aid in this performance by injecting different data tokens for different types of views (i.e. Dashboards, etc...) then we can actually have a differerent ViewEngines for those specific ones by checking for the correct token. |
|
FindView ( ControllerContext controllerContext, string viewName, string masterName, bool useCache ) : System.Web.Mvc.ViewEngineResult |
If we're not rendering in an rebel context, this will exit, otherwise will find the view based on the base class implementation.
|
|
PluginViewEngine ( RebelSettings settings, IPackageContext packageContext ) : System |
Constructor
|
Method | Description | |
---|---|---|
SetViewLocations ( ) : void | ||
ShouldFindView ( ControllerContext controllerContext, bool isPartial ) : bool |
Determines if a view should be found, this is to improve performance of view lookups but also to decrease the amount of overlap with other view engines.
|
public FindPartialView ( ControllerContext controllerContext, string partialViewName, bool useCache ) : System.Web.Mvc.ViewEngineResult | ||
controllerContext | ControllerContext | |
partialViewName | string | |
useCache | bool | |
return | System.Web.Mvc.ViewEngineResult |
public FindView ( ControllerContext controllerContext, string viewName, string masterName, bool useCache ) : System.Web.Mvc.ViewEngineResult | ||
controllerContext | ControllerContext | |
viewName | string | |
masterName | string | |
useCache | bool | |
return | System.Web.Mvc.ViewEngineResult |
public PluginViewEngine ( RebelSettings settings, IPackageContext packageContext ) : System | ||
settings | RebelSettings | |
packageContext | IPackageContext | |
return | System |