TableShortcode Class
Renders an HTML table.
Base Types
graph BT Type-->Base0["SyncShortcode"] click Base0 "/api/Statiq.Common/SyncShortcode" Base0-->Base1["object"] Type-.->Interface0["IShortcode"] click Interface0 "/api/Statiq.Common/IShortcode" Type["TableShortcode"] class Type type-node


public class TableShortcode : SyncShortcode, IShortcode


Example usage:

<?# Table Class=table HeaderRows=1 ?>
Vehicle "Number Of Wheels"
Bike 2
Car 4
Truck "A Whole Lot"
<?#/ Table ?>

Example output:

<table class="table">
      <th>Number Of Wheels</th>
      <td>A Whole Lot</td>


The content of the shortcode contains the table with each row on a new line and each column separated by new lines. Enclose columns in quotes if they contain a space. Note that since the content of a shortcode may get processed by template engines like Markdown and the content of this shortcode should not be, you probably want to wrap the shortcode content in the special XML processing instruction that will get trimmed like <?* ... ?> so it "passes through" any template engines (see example below).


Extension Methods