Razor.RazorParser Class
Namespace: Nucleus.Extensions.Razor
Assembly: Nucleus.Extensions.dll
Razor Parser methods.
Methods
Parse<TModel>
(String, <TModel>) Method
Parse<TModel> (String template, <TModel> model)
Compile and execute the specified template, using the supplied model as input.
Parameters
| Name |
Type |
|
template
|
String
Razor-language template.
|
|
model
|
<TModel>
|
TestCompile
(Type, String) Method
TestCompile (Type modelType, String template)
Test-compile the template, throwing an exception on error.
Parameters
| Name |
Type |
|
modelType
|
Type
|
|
template
|
String
Razor-language template.
|