While Wyam is certainly still usable, it's been rebranded and rebooted as Statiq with a ton of improvements. You almost certainly want to look there unless you're already a Wyam user.

Documents.

Documents(ContextConfig) Constructor

Summary

This will get documents based on the context so you can perform custom document fetching behavior. The delegate will only be called once, regardless of the number of input documents. The return value is expected to be a IEnumerable<IDocument>.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.Control
Containing Type
Documents

Syntax

public Documents(ContextConfig documents)

Parameters

Name Type Description
documents ContextConfig A delegate that should return a IEnumerable<IDocument> containing the documents to output.

Return Value

Type Description
void
GitHub