PaginateDocuments Class
Splits a sequence of documents into multiple pages.
Namespace
Statiq.Core
Interfaces
Base Types
graph BT Type-->Base0["SyncModule"] click Base0 "/api/Statiq.Common/SyncModule" Base0-->Base1["Module"] click Base1 "/api/Statiq.Common/Module" Base1-->Base2["object"] Type-.->Interface0["IModule"] click Interface0 "/api/Statiq.Common/IModule" Type["PaginateDocuments"] class Type type-node

Syntax

public class PaginateDocuments : SyncModule, IModule

Remarks

This module forms pages from the input documents. Note that if there are no documents to paginate, this module will still output an empty page without any documents inside the page.

Constructors

Name Summary
PaginateDocuments(int) Partitions the result of the input documents into the specified number of pages.

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
ExecuteContext(IExecutionContext) IEnumerable<IDocument>
Executes the module once for all input documents.
ExecuteContextAsync(IExecutionContext) Task<IEnumerable<IDocument>>
Executes the module once for all input documents.
Inherited from SyncModule
ExecuteInput(IDocument, IExecutionContext) IEnumerable<IDocument>
Executes the module.
Inherited from SyncModule
ExecuteInputAsync(IDocument, IExecutionContext) Task<IEnumerable<IDocument>>
Executes the module.
Inherited from SyncModule
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
SkipPages(int) PaginateDocuments
Skips a specified number of pages before outputting pages.
TakePages(int) PaginateDocuments
Only outputs a specific number of pages.
WithSource(NormalizedPath) PaginateDocuments
Sets the source (and destination) of the output document(s).

Extension Methods