Sha256: 3d02cad32e426d94e6faff9c4a187936eff1ee6477ab479e3b6cfcd7b5740410

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

<table {% if node.id %}id="{{ node.id }}"{% endif %}>
  {% 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

1 entries across 1 versions & 1 rubygems

Version Path
asciidoctor-htmlbook-0.0.6 templates/table.html