Click or drag to resize
MacroProcessorProcessMacros Method
Replaces macros with given replacement or resolves them if replacement is null.

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 8.2.23
Syntax
C#
public static bool ProcessMacros(
	IDataContainer data,
	Func<string, string, string> lambda,
	List<string> type = null,
	bool processOpenExpressions = true
)

Parameters

data
Type: CMS.BaseIDataContainer
Object to process
lambda
Type: SystemFuncString, String, String
Lambda expression called on each macro
type (Optional)
Type: System.Collections.GenericListString
Type of the macro to resolve (if null, all types are resolved).
processOpenExpressions (Optional)
Type: SystemBoolean
If true, open expressions such as {% if (true) { %} any HTML code {%}%} are processed

Return Value

Type: Boolean
See Also