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