Sha256: bda63d5ac0d4f9105d5249acf31d46ba97553f125356c031c6444987d1d7302c

Contents?: true

Size: 1.25 KB

Versions: 4

Compression:

Stored size: 1.25 KB

Contents

<table>
  {% if node.title %}
    <caption>{{ node.captioned_title }}</caption>
  {% endif %}
  {% if node.rows.head.size > 0 %}
    <thead>
      {% for row in node.rows.head %}
        <tr>
          {% for cell in row %}
            <th {% if cell.colspan %}colspan="{{ cell.colspan }}"{% endif %}
                {% if cell.rowspan %}rowspan="{{ cell.rowspan }}"{% endif %}>{{ cell.content }}</th>
          {% endfor %}
        </tr>
      {% endfor %}
    </thead>
  {% endif %}
  {% if node.rows.body.size > 0 %}
    <tbody>
      {% for row in node.rows.body %}
        <tr>
          {% for cell in row %}
            <td {% if cell.colspan %}colspan="{{ cell.colspan }}"{% endif %}
                {% if cell.rowspan %}rowspan="{{ cell.rowspan }}"{% endif %}>{{ cell.content }}</td>
          {% endfor %}
        </tr>
      {% endfor %}
    </tbody>
  {% endif %}
  {% if node.rows.foot.size > 0 %}
    <tfoot>
      {% for row in node.rows.foot %}
        <tr>
          {% for cell in row %}
            <td {% if cell.colspan %}colspan="{{ cell.colspan }}"{% endif %}
                {% if cell.rowspan %}rowspan="{{ cell.rowspan }}"{% endif %}>{{ cell.content }}</td>
          {% endfor %}
        </tr>
      {% endfor %}
    </tfoot>
  {% endif %}
</table>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
asciidoctor-htmlbook-0.0.5 templates/table.html
asciidoctor-htmlbook-0.0.4 templates/table.html
asciidoctor-htmlbook-0.0.3 templates/table.html
asciidoctor-htmlbook-0.0.2 templates/table.html