Méthode | Description | |
---|---|---|
Parse ( string template, bool disableContentEscaping = false ) : Func |
Parse the template content, producing a function that can be used to apply variables to the template. The provided function can be reused (i.e. no state will "leak" from one application of the function to the next).
|
|
ParseWithModelInference ( string templateSource, bool disableContentEscaping = false ) : |
Parse the template, and capture paths used in the template to determine a suitable structure for the required model.
|
Méthode | Description | |
---|---|---|
HandleCollectionOpen ( |
||
HandleContent ( string token ) : ContextObject>.Action |
||
HandleElementOpen ( |
||
HandleInvertedElementOpen ( |
||
HandleSingleValue ( |
||
HtmlEncodeString ( string context ) : string | ||
Parse ( Queue |
public static Parse ( string template, bool disableContentEscaping = false ) : Func |
||
template | string | The content of the template to be parsed. |
disableContentEscaping | bool | In some cases, content should not be escaped (such as when rendering text bodies and subjects in emails). /// By default, we use content escaping, but this parameter allows it to be disabled. |
Résultat | Func |
public static ParseWithModelInference ( string templateSource, bool disableContentEscaping = false ) : |
||
templateSource | string | The template content to parse. |
disableContentEscaping | bool | In some cases, content should not be escaped (such as when rendering text bodies and subjects in emails). /// By default, we use content escaping, but this parameter allows it to be disabled. |
Résultat |