Sha256: 92140ac93d226af5c936bc67c4c9121f613222335bfa463c2bcfeda41f2911cf

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

<table>
  {% if node.title %}
    <caption>{{ node.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.1 templates/table.html