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
(String) Method
TestCompile (String template)
Test-compile the template, throwing an exception on error.
Parameters
Name |
Type |
template
|
String
Razor-language template.
|