Method | Description | |
---|---|---|
ClearTypeCache ( ) : |
||
Dispose ( ) : void | ||
Execute ( string templateVirtualPathOrContent, object model = null, object viewbag = null, bool skipLayout = false, bool throwExceptionOnVirtualPathNotFound = true ) : ITemplate |
Hybrid convenience executer. It decides whether to execute content or an url.
|
|
ExecuteContent ( string templateContent, object model = null, object viewbag = null, bool skipLayout = false ) : ITemplate |
Renders the specified template content's result with the passed model instance and returns the template's rendered result. A corresponding virtual path is generated internally for being able to keep the compiled template type cached.
|
|
ExecuteUrl ( string templateVirtualPath, object model = null, object viewbag = null, bool skipLayout = false, bool throwExceptionOnVirtualPathNotFound = true ) : ITemplate |
Executes the template by its virtual path and returns the resulting executed template instance.
|
|
GetRegisteredInMemoryTemplates ( ) : string>.IDictionary |
||
RazorMachine ( ) : System | ||
RazorMachine ( Xipton.Razor.Config.RazorConfig config ) : System | ||
RazorMachine ( |
||
RazorMachine ( string xmlContentOrFileName ) : System | ||
RegisterTemplate ( string virtualPath, string content ) : |
||
RemoveTemplate ( string virtualPath ) : |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void | ||
NormalizeVirtualPath ( string virtualPath ) : string |
public Execute ( string templateVirtualPathOrContent, object model = null, object viewbag = null, bool skipLayout = false, bool throwExceptionOnVirtualPathNotFound = true ) : ITemplate | ||
templateVirtualPathOrContent | string | Content of the template URL or. |
model | object | The model. |
viewbag | object | The viewbag. |
skipLayout | bool | if set to |
throwExceptionOnVirtualPathNotFound | bool | if set to |
return | ITemplate |
public ExecuteContent ( string templateContent, object model = null, object viewbag = null, bool skipLayout = false ) : ITemplate | ||
templateContent | string | Content of the template. |
model | object | The model |
viewbag | object | The optional viewbag |
skipLayout | bool | if set to |
return | ITemplate |
public ExecuteUrl ( string templateVirtualPath, object model = null, object viewbag = null, bool skipLayout = false, bool throwExceptionOnVirtualPathNotFound = true ) : ITemplate | ||
templateVirtualPath | string | The requested virtual path for the template. |
model | object | The optional model. |
viewbag | object | The optional viewbag. |
skipLayout | bool | if set true then any layout setting is ignored |
throwExceptionOnVirtualPathNotFound | bool |
/// Optional. If set to |
return | ITemplate |
public GetRegisteredInMemoryTemplates ( ) : string>.IDictionary |
||
return | string>.IDictionary |
protected NormalizeVirtualPath ( string virtualPath ) : string | ||
virtualPath | string | |
return | string |
public RazorMachine ( Xipton.Razor.Config.RazorConfig config ) : System | ||
config | Xipton.Razor.Config.RazorConfig | |
return | System |
public RazorMachine ( |
||
baseType | ||
rootOperatorPath | string | |
language | ||
defaultExtension | string | |
autoIncludeNameWithoutExtension | string | |
sharedLocation | string | |
includeGeneratedSourceCode | bool | |
htmlEncode | bool | |
references | IEnumerable |
|
namespaces | IEnumerable |
|
contentProviders | IEnumerable |
|
replaceReferences | bool | |
replaceNamespaces | bool | |
replaceContentProviders | bool | |
return | System |
public RazorMachine ( string xmlContentOrFileName ) : System | ||
xmlContentOrFileName | string | |
return | System |
public RegisterTemplate ( string virtualPath, string content ) : |
||
virtualPath | string | |
content | string | |
return |
public RemoveTemplate ( string virtualPath ) : |
||
virtualPath | string | |
return |