Microsoft.Bot.Builder.TemplateManager Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Classes
| DictionaryRenderer |
This is a simple template engine which has a resource map of template functions let myTemplates = { "en" : { "templateId": (context, data) => $"your name is {data.name}", "templateId": (context, data) => { return new Activity(); } }` } } To use, simply register with templateManager templateManager.Register(new DictionaryRenderer(myTemplates)). |
| LanguageTemplateDictionary |
Map of language -> template functions. |
| TemplateIdMap |
Map of Template Ids-> Template Function(). |
| TemplateManager |
TemplateManager manages set of ITemplateRenderer implementations. |
| TemplateOptions |
ChannelData for Activity template of type Template. |
Interfaces
| ITemplateRenderer |
Defines interface for data binding to template and rendering a string. |