ToDocuments<T>(IEnumerable<T>, Func<T, NormalizedPath>, Func<T, NormalizedPath>, Func<T, IEnumerable<KeyValuePair<string, object>>>, Func<T, IContentProvider>) Method
Namespace
Statiq.Common
Containing Type
ObjectToDocumentExtensions

Syntax

public static IEnumerable<IDocument> ToDocuments<T>(this IEnumerable<T> objs, Func<T, NormalizedPath> sourceFunc, Func<T, NormalizedPath> destinationFunc, Func<T, IEnumerable<KeyValuePair<string, object>>> itemsFunc, Func<T, IContentProvider> contentProviderFunc = null)

Type Parameters

Name Description
T

Parameters

Name Type Description
objs IEnumerable<T>
sourceFunc Func<T, NormalizedPath>
destinationFunc Func<T, NormalizedPath>
itemsFunc Func<T, IEnumerable<KeyValuePair<string, object>>>
contentProviderFunc Func<T, IContentProvider>

Return Value

Type Description
IEnumerable<IDocument>