C# Class Rebel.Cms.Web.Mvc.ViewEngines.RenderViewEngine

A view engine to look into the template location specified in the config for the front-end/Rendering part of the cms, this includes paths to render partial macros and media item templates.
Inheritance: System.Web.Mvc.RazorViewEngine
Mostrar archivo Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
FindPartialView ( ControllerContext controllerContext, string partialViewName, bool useCache ) : System.Web.Mvc.ViewEngineResult
FindView ( ControllerContext controllerContext, string viewName, string masterName, bool useCache ) : System.Web.Mvc.ViewEngineResult
RenderViewEngine ( RebelSettings settings, IRenderModelFactory renderModelFactory ) : System.Collections.Generic

Constructor

Private Methods

Method Description
ShouldFindView ( ControllerContext controllerContext, bool isPartial ) : bool

Determines if the view should be found, this is used for view lookup performance and also to ensure less overlap with other user's view engines. This will return true if the Rebel back office is rendering and its a partial view or if the rebel front-end is rendering but nothing else.

Method Details

FindPartialView() public method

public FindPartialView ( ControllerContext controllerContext, string partialViewName, bool useCache ) : System.Web.Mvc.ViewEngineResult
controllerContext ControllerContext
partialViewName string
useCache bool
return System.Web.Mvc.ViewEngineResult

FindView() public method

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

RenderViewEngine() public method

Constructor
public RenderViewEngine ( RebelSettings settings, IRenderModelFactory renderModelFactory ) : System.Collections.Generic
settings RebelSettings
renderModelFactory IRenderModelFactory
return System.Collections.Generic