Specifies child modules to be evaluated if a given metadata key is present in the input document.
- Namespace
- Statiq
.Core - Containing Type
- ExecuteIf
Syntax
public ExecuteIf(IEnumerable<string> keys, params IModule[] modules)
Remarks
Only input documents will be processed and the modules will not be run if there are no input documents.
Parameters
Name | Type | Description |
---|---|---|
keys | IEnumerable |
Metadata keys that must be present in the input document. |
modules | IModule[] | The modules to execute on documents that contain the specified metadata key. |