Метод | Описание | |
---|---|---|
Parse ( string text, string sourceFilePath = null, |
Parses the specified scripting text into a Template .
|
|
Render ( object model = null ) : string |
Renders this template using the specified object model.
|
|
Render ( |
Renders this template using the specified context. See remarks. When using this method, the result of rendering this page is output to TemplateContext.Output |
Метод | Описание | |
---|---|---|
ParseInternal ( string text, string sourceFilePath ) : void | ||
Template ( |
public static Parse ( string text, string sourceFilePath = null, |
||
text | string | The scripting text. |
sourceFilePath | string | The source file path. Optional, used for better error reporting if the source file has a location on the disk |
options | The templating parsing options. | |
Результат |
public Render ( object model = null ) : string | ||
model | object | The object model. |
Результат | string |
public Render ( |
||
context | The template context. | |
Результат | void |