{# Shared markup for the NetCDF inventory tables (variables and coordinates):
a common header row, a common data row, and the per-row attribute disclosure.
Used by _nc_variables.html and _nc_coords.html so both tables stay identical. #}
{% macro var_thead() %}
{% endmacro %}
{% macro attr_disclosure(attrs) %}
{%- if attrs %}Variable Type Units Standard / long name Min / Max N (valid) Attributes {{ attrs|length }} attr{{ 's' if attrs|length != 1 else '' }}
{% for k, val in attrs.items() %}
{% endfor %}
{{ k }} {{ val }}