Show / Hide Table of Contents

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 if not specified

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>

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft