GroupBy.

WithEmptyOutputIfNoGroups(bool) Method

Summary

Specifies that no documents should be output if there are no groups. This is in contrast to the default behavior of outputting the unmodified input documents if no groups were found.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.Control
Containing Type
GroupBy

Syntax

public GroupBy WithEmptyOutputIfNoGroups(bool emptyOutput = true)

Parameters

Name Type Description
emptyOutput bool true to not output documents when no groups are found.

Return Value

Type Description
GroupBy The current module instance.
GitHub