Wyam.Core.Modules.Control.Concat module.
Usage
-
Documents()This outputs all existing documents from all pipelines (except the current one).
-
Documents(ContextConfig documents)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>.documentsA delegate that should return a
IEnumerable<IDocument>containing the documents to output.
-
Documents(DocumentConfig documents)This will get documents based on each input document. The output will be the aggregate of all returned documents for each input document. The return value is expected to be a
IEnumerable<IDocument>.documentsA delegate that should return a
IEnumerable<IDocument>containing the documents to output for each input document.
-
Documents(params IEnumerable<KeyValuePair<string, Object>>[] metadata)Generates new documents with the specified metadata.
metadataThe metadata for each output document.
-
Documents(int count)Generates a specified number of new empty documents.
countThe number of new documents to output.
-
Documents(string pipeline)This outputs the documents from the specified pipeline.
pipelineThe pipeline to output documents from.
-
Documents(params string[] content)Generates new documents with the specified content.
contentThe content for each output document.
-
Documents(params Tuple<string, IEnumerable<KeyValuePair<string, Object>>>[] contentAndMetadata)Generates new documents with the specified content and metadata.
contentAndMetadataThe content and metadata for each output document.
Fluent Methods
Chain these methods together after the constructor to modify behavior.
-
FromPipelines(params string[] pipelines)Gets documents from additional pipeline(s). The final sequence of documents will be in the order they appear from all specified pipelines. If the empty constructor is used that outputs documents from all pipelines, this will override that behavior and only output the specified pipelines. Likewise, if another constructor was used that relies on a
Wyam.Common.Configuration.ContextConfigorWyam.Common.Configuration.DocumentConfigthen using this method will throwSystem.InvalidOperationException.pipelinesThe additional pipelines to get documents from.
-
Where(DocumentConfig predicate)Only documents that satisfy the predicate will be output.
predicateA delegate that should return a
bool.
