Format¶
Returns result of specified template on current node.
1 |
|
Parameters¶
string template
Template to apply.
object options
Template options. Can be null. Option contains the parameters to be used in template or following properties:
Remarks¶
Like XSLT formatting this method provides much simpler template usage for converting XML data to HTML or any other data.
Template may contain xpath expressions or variables that wrapped in {{ and }} characters. All formatting done with invariant culture if not specified in options. Please refer the Data+Templates section for more information.
Custom variables can be used in template content as {{$VariableName}} format. If variable is an object; formatting string can be used as {{$VariableName.Property}}.
Basic template¶
1 2 3 |
|
Date formatting¶
1 2 3 |
|
Using Variable¶
1 2 3 4 5 |
|