C# Класс 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.
Наследование: System.Web.Mvc.RazorViewEngine
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

FindPartialView() публичный Метод

public FindPartialView ( ControllerContext controllerContext, string partialViewName, bool useCache ) : System.Web.Mvc.ViewEngineResult
controllerContext ControllerContext
partialViewName string
useCache bool
Результат System.Web.Mvc.ViewEngineResult

FindView() публичный Метод

public FindView ( ControllerContext controllerContext, string viewName, string masterName, bool useCache ) : System.Web.Mvc.ViewEngineResult
controllerContext ControllerContext
viewName string
masterName string
useCache bool
Результат System.Web.Mvc.ViewEngineResult

RenderViewEngine() публичный Метод

Constructor
public RenderViewEngine ( RebelSettings settings, IRenderModelFactory renderModelFactory ) : System.Collections.Generic
settings RebelSettings
renderModelFactory IRenderModelFactory
Результат System.Collections.Generic