Interface ITemplateRenderer
Namespace: Volo.Abp.TextTemplating
Assembly: Volo.Abp.TextTemplating.dll
Syntax
public interface ITemplateRenderer
Methods
RenderAsync(String, Object, String, Dictionary<String, Object>)
Renders a text template.
Declaration
Task<string> RenderAsync(string templateName, object model = null, string cultureName = null, Dictionary<string, object> globalContext = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | templateName | The template name |
| System.Object | model | An optional model object that is used in the template |
| System.String | cultureName | Culture name. Uses the |
| Dictionary<System.String, System.Object> | globalContext | A dictionary which can be used to import global objects to the template |
Returns
| Type | Description |
|---|---|
| Task<System.String> |