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: 9.0.0
Syntax
C#
public static bool ProcessMacros(
	IDataContainer data,
	Func<MacroProcessingContext, string, string> lambda,
	List<string> type = null,
	bool processOpenExpressions = true
)

Parameters

data
Type: CMS.BaseIDataContainer
Object to process
lambda
Type: SystemFuncMacroProcessingContext, 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