{% macro revision(row) -%} {% set index = 8 - row %} {% if row == 9 %} Rev Date Name Changelog {% elif metadata.revisions_list|length > index %} {% set revision = metadata.revisions_list[index] %} {{ revision.revision }} {{ revision.date }} {{ revision.name }} {{ revision.changelog }} {% else %} {% endif %} {%- endmacro %} {% macro author(row) -%} {% set index = row - 2 %} {% if row == 1 %} Date Name {% elif metadata.authors_list|length > index %} {% set author = metadata.authors_list[index] %} {{ author.role }} {{ author.date }} {{ author.name }} {% else %} {% endif %} {%- endmacro %}
{{ revision(1) }} {{ author(1) }} {{ revision(2) }} {{ author(2) }} {{ revision(3) }} {{ author(3) }} {{ revision(4) }} {{ author(4) }} {{ revision(5) }} {{ author(5) }} {{ revision(6) }} {{ revision(7) }} {{ revision(8) }} {{ revision(9) }}
{{ metadata.company }}
{{ metadata.address }}
{{ metadata.title }}
{{ partno }} REV {{ metadata.revision }}
{{ metadata.git_status }} Sheet {{ metadata.sheet_current }} of {{ metadata.sheet_total }}