Template class
Here is a data model that can easily understanded and used as the context or all kinds of visitors wether it's evalator, static checker, anayler.. etc
Constructors
Template(string, string[], string, Source |
Creates a new instance of the Template class. |
Properties
body | Text format of Body of this template. All content except Name and Parameters. |
name | Name of the template, what's followed by '#' in a LG file |
parameters | Parameter list of this template |
properties | The extended properties for the object. |
source |
Source of this template |
template |
Parse tree of this template. |
Methods
to |
Returns a string representing the current Template object. |
Constructor Details
Template(string, string[], string, SourceRange)
Creates a new instance of the Template class.
new Template(templatename: string, parameters: string[], templatebody: string, sourceRange: SourceRange)
Parameters
- templatename
-
string
Template name without parameters.
- parameters
-
string[]
Parameter list.
- templatebody
-
string
Template content.
- sourceRange
- SourceRange
(xref:botbuilder-lg.SourceRange) of template.
Property Details
body
Text format of Body of this template. All content except Name and Parameters.
body: string
Property Value
string
name
Name of the template, what's followed by '#' in a LG file
name: string
Property Value
string
parameters
Parameter list of this template
parameters: string[]
Property Value
string[]
properties
The extended properties for the object.
properties?: Record<string, unknown>
Property Value
Record<string, unknown>