FilterDestinations<TDocument>(IEnumerable<TDocument>, string[]) Method
Filters the documents by destination.
Namespace
Statiq.Common
Containing Type
IDocumentEnumerableExtensions

Syntax

public static FilteredDocumentList<TDocument> FilterDestinations<TDocument>(this IEnumerable<TDocument> documents, params string[] patterns) 
    where TDocument : IDocument

Remarks

This module filters documents using "or" logic. If you want to also apply "and" conditions, chain additional calls. This also flattens the documents using Children before filtering.

Type Parameters

Name Description
TDocument The document type.

Parameters

Name Type Description
documents IEnumerable<TDocument> The documents to filter.
patterns string[] The globbing pattern(s) to match.

Return Value

Type Description
FilteredDocumentList<TDocument> The documents that match the globbing pattern(s).