Sha256: 18aad63c30b5b475039dff345e7973caf024dc53e159794e0b6dd1f31de647f3

Contents?: true

Size: 1.3 KB

Versions: 9

Compression:

Stored size: 1.3 KB

Contents

<table class="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

9 entries across 9 versions & 1 rubygems

Version Path
asciibook-0.1.0 templates/table.html
asciibook-0.1.0.pre.beta templates/table.html
asciibook-0.0.5 templates/table.html
asciibook-0.0.4 templates/table.html
asciibook-0.0.3 templates/table.html
asciibook-0.0.2 templates/table.html
asciibook-0.0.2.beta2 templates/table.html
asciibook-0.0.2.beta1 templates/table.html
asciibook-0.0.1 templates/table.html