CreateDocuments Class
Creates new documents.
Namespace
Statiq.Core
Interfaces
Base Types
graph BT Type-->Base0["ConfigModule<IEnumerable<IDocument>>"] Base0-->Base1["Module"] click Base1 "/api/Statiq.Common/Module" Base1-->Base2["object"] Type-.->Interface0["IModule"] click Interface0 "/api/Statiq.Common/IModule" Type["CreateDocuments"] class Type type-node

Syntax

public class CreateDocuments : ConfigModule<IEnumerable<IDocument>>, IModule

Remarks

This module does not include the input documents as part of it's output (if you need to change the content of an existing document, use SetContent).

Constructors

Name Summary
CreateDocuments(Config<IEnumerable<string>>, string) Creates new documents with the specified content.
CreateDocuments(Config<string>, string) Creates a new document with the specified content.
CreateDocuments(IEnumerable<IEnumerable<KeyValuePair<string, object>>>) Creates new documents with the specified metadata.
CreateDocuments(IEnumerable<KeyValuePair<string, object>>[]) Creates new documents with the specified metadata.
CreateDocuments(IEnumerable<string>, string) Creates new documents with the specified content.
CreateDocuments(IEnumerable<Tuple<string, IEnumerable<KeyValuePair<string, object>>>>, string) Creates new documents with the specified content and metadata.
CreateDocuments(int) Creates a specified number of new empty documents.
CreateDocuments(string[]) Creates new documents with the specified content.
CreateDocuments(Tuple<string, IEnumerable<KeyValuePair<string, object>>>[]) Creates new documents with the specified content and metadata.

Methods

Name Return Value Summary
AfterExecution(IExecutionContext, ExecutionOutputs) void
Called after each module execution.
Inherited from Module
AfterExecutionAsync(IExecutionContext, ExecutionOutputs) Task
Called after each module execution.
Inherited from Module
BeforeExecution(IExecutionContext) void
Called before each module execution.
Inherited from Module
BeforeExecutionAsync(IExecutionContext) Task
Called before each module execution.
Inherited from Module
ExecuteAsync(IExecutionContext) Task<IEnumerable<IDocument>>
This should not be called directly, instead call IExecutionContext.Execute() if you need to execute a module from within another module.
Inherited from Module
ExecuteConfigAsync(IDocument, IExecutionContext, IEnumerable<IDocument>) Task<IEnumerable<IDocument>>
Finally(IExecutionContext) void
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
FinallyAsync(IExecutionContext) Task
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module

Extension Methods