ExecuteIf(string, IEnumerable<IModule>) Constructor
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(string key, IEnumerable<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
key string A metadata key that must be present in the input document.
modules IEnumerable<IModule> The modules to execute on documents that contain the specified metadata key.