elf-notes/templates/macros/definition_table.html

18 lines
395 B
HTML
Raw Permalink Normal View History

2022-06-14 01:25:11 +00:00
{% macro definition_table(source) %}
<table>
<tbody>
{% for entry in source -%}
<tr>
<td><code>{{ entry.dt | safe }}</code></td>
<td>{{ entry.dd | safe }}</td>
</tr>
{% if entry.definitions -%}
<tr>
<td colspan="2" class="sub-definition">{{ self::definition_table(source=entry.definitions) }}</td>
</tr>
{%- endif %}
{% endfor %}
</tbody>
</table>
{% endmacro %}