MacroProcessorProcessMacros Method |
Replaces macros with given replacement or resolves them if replacement is null.
Namespace: CMS.MacroEngineAssembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 13.0.131
Syntax public static bool ProcessMacros(
IDataContainer data,
ObjectTypeInfo typeInfo,
Func<MacroProcessingContext, string, string> lambda,
List<string> type = null,
bool processOpenExpressions = true
)
Parameters
- data
- Type: CMS.BaseIDataContainer
Object to process - typeInfo
- Type: CMS.DataEngineObjectTypeInfo
Object type info of processed object. - 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:
BooleanSee Also