RenderCsvAsHtml Class
Converts CSV content to HTML tables.
Namespace
Statiq.Tables
Interfaces
Base Types
graph BT Type-->Base0["ParallelSyncModule"] click Base0 "/api/Statiq.Common/ParallelSyncModule" Base0-->Base1["Module"] click Base1 "/api/Statiq.Common/Module" Base1-->Base2["object"] Type-.->Interface0["IModule"] click Interface0 "/api/Statiq.Common/IModule" Type-.->Interface1["IParallelModule"] click Interface1 "/api/Statiq.Common/IParallelModule" Type["RenderCsvAsHtml"] class Type type-node

Syntax

public class RenderCsvAsHtml : ParallelSyncModule, IModule, IParallelModule

Remarks

This module reads the content of each input document as CSV and outputs an HTML <table> tag containing the CSV content. No <html> or <body> tags are output. The input CSV content must use , as separator and enclose every value in ".

Properties

Name Property Type Summary
Parallel bool
Indicates whether documents will be processed by this module in parallel.
Inherited from ParallelSyncModule

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
ExecuteContextAsync(IExecutionContext) Task<IEnumerable<IDocument>>
Executes the module once for all input documents.
Inherited from ParallelSyncModule
ExecuteInput(IDocument, IExecutionContext) IEnumerable<IDocument>
ExecuteInputAsync(IDocument, IExecutionContext) Task<IEnumerable<IDocument>>
Executes the module.
Inherited from ParallelSyncModule
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
WithHeader() RenderCsvAsHtml
Treats the first line of input content as a header and generates <th> tags in the output table.

Extension Methods