Class TemplateProvider
Implements operations for the template provider. (Inherits System.Configuration.Provider.ProviderBase.)
Namespace: Mediachase.Commerce.Engine.Template
Assembly: Mediachase.Commerce.dll
Version: 13.30.0Syntax
[Obsolete("The template engine is no longer used. Can use content like page data to accomplish the same goals. Will remain at least until Aug 2020")]
public abstract class TemplateProvider : ProviderBase
Constructors
TemplateProvider()
Declaration
protected TemplateProvider()
Properties
ApplicationName
Gets or sets the name of the application.
Declaration
public abstract string ApplicationName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the application. |
Methods
Process(String, CultureInfo, IDictionary)
Processes the specified template with a context provided.
Declaration
public abstract string Process(string template, CultureInfo culture, IDictionary context)
Parameters
Type | Name | Description |
---|---|---|
System.String | template | The template. |
System.Globalization.CultureInfo | culture | The culture. |
System.Collections.IDictionary | context | The context. |
Returns
Type | Description |
---|---|
System.String | The processed template with context embedded. |