CustomDocumentFactory<T>.

GetDocument(IExecutionContext, IDocument, IEnumerable<KeyValuePair<string, Object>>) Method

Summary

Clones the specified source document with identical content and additional metadata (all existing metadata is retained) or gets a new document if the source document is null or AsNewDocuments() was called on the module.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Documents
Containing Type
CustomDocumentFactory<T>

Syntax

public IDocument GetDocument(IExecutionContext context, IDocument sourceDocument, IEnumerable<KeyValuePair<string, Object>> items)

Parameters

Name Type Description
context IExecutionContext The current execution context.
sourceDocument IDocument The source document.
items IEnumerable<KeyValuePair<string, Object>> The metadata items.

Return Value

Type Description
IDocument The cloned or new document.
GitHub