Summary
Converts CSV content to HTML tables.
- Assembly
- Wyam
.Tables .dll - Namespace
- Wyam
.Tables - Interfaces
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IModule"]
click Interface0 "/api/Wyam.Common.Modules/IModule"
Type["CsvToHtml"]
class Type type-node
Syntax
public class CsvToHtml : IModule
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 ".
Methods
| Name | Value | Summary |
|---|---|---|
| Execute |
IEnumerable |
This should not be called directly, instead call
IExecutionContext.Execute() if you need to execute a module from within another module.
|
| WithHeader |
CsvToHtml |
Treats the first line of input content as a header and generates
<th> tags in the output table.
|
