C# Class NServiceMVC.WebStack.TemplateEngine

ファイルを表示 Open project: gregmac/NServiceMVC

Public Methods

Method Description
Initialize ( ) : void

Initialize the template engine, called by NServiceMVC.Initialize()

LoadEmbeddedResource ( string embeddedResourcePath ) : string

Loads an embedded resource. Returns null if there is a problem (eg, not found).

RenderView ( string viewName, object model ) : System.Web.Mvc.ContentResult

Method Details

Initialize() public static method

Initialize the template engine, called by NServiceMVC.Initialize()
public static Initialize ( ) : void
return void

LoadEmbeddedResource() public static method

Loads an embedded resource. Returns null if there is a problem (eg, not found).
public static LoadEmbeddedResource ( string embeddedResourcePath ) : string
embeddedResourcePath string The full resource path (including namespace)
return string

RenderView() public static method

The resource could not be found
public static RenderView ( string viewName, object model ) : System.Web.Mvc.ContentResult
viewName string
model object
return System.Web.Mvc.ContentResult