Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
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. | |
return |
public Render ( object model = null ) : string | ||
model | object | The object model. |
return | string |
public Render ( |
||
context | The template context. | |
return | void |