Tree.

WithNesting(bool, bool) Method

Summary

Indicates that the module should only output root nodes (instead of all nodes which is the default behavior).
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.Metadata
Containing Type
Tree

Syntax

public Tree WithNesting(bool nesting = true, bool collapseRoot = false)

Parameters

Name Type Description
nesting bool true to enable nesting and only output the root nodes.
collapseRoot bool Indicates that the root of the tree should be collapsed and the module should output first-level documents as if they were root documents. This setting has no effect if not nesting.

Return Value

Type Description
Tree The current module instance.
GitHub