MacroProcessorProcessMacros Method |
Replaces macros with given replacement or resolves them if replacement is null.
Namespace: CMS.MacroEngineAssembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 8.2.23
Syntax 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:
BooleanSee Also