IExecutionContext.

GetDocument(FilePath, IEnumerable<KeyValuePair<string, Object>>) Method

Summary

Gets a new document with the specified source and metadata (in addition to the default initial metadata).
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Execution
Containing Type
IExecutionContext

Syntax

IDocument GetDocument(FilePath source, IEnumerable<KeyValuePair<string, Object>> items = null)

Parameters

Name Type Description
source FilePath The source.
items IEnumerable<KeyValuePair<string, Object>> The metadata items.

Return Value

Type Description
IDocument The new document.
GitHub