qmk_firmware/data/templates/xap/docs/routes.md.j2
2022-05-22 21:12:32 +01:00

12 lines
445 B
Django/Jinja

{%- for id, route in xap.routes | dictsort %}
### {{ route.name }} - `{{ id }}`
{{ route.description }}
{% if route.routes %}
| Name | Route | Tags | Definition |
| -- | -- | -- | -- |
{%- for subid, subroute in route.routes | dictsort %}
| {{ subroute.name }} | `{{ id }} {{ subid }}` | {% if 'secure' == subroute.permissions %}__Secure__{% endif %} | {{ subroute.description.replace('\n', '<br>') }} |
{%- endfor %}
{% endif %}
{%- endfor %}