{% macro render_section(section_id, title, items) %}
{{ macros::section_header(id=section_id, title=title) }} {{ macros::toc_list(items=items) }} {% for item in items %}
{{ macros::item_header(anchor=item.anchor, name=item.name) }} {% if item.feature %}
Requires feature: {{ item.feature }}
{% endif %} {{ item.comment | markdown | safe }} {% if section_id == "enums" %} {% for variant in item.variants %}
{% if variant.comment %} {{ variant.comment | markdown | safe }} {% endif %} #
{{ variant.name }} = {{ variant.value }}
{% endfor %} {% else %} {{ item.text | markdown | safe }} {% endif %} {{ macros::back_to_top() }}
{% endfor %}
{% endmacro render_section %}