12 lines
440 B
Django/Jinja
12 lines
440 B
Django/Jinja
{%- for id, route in xap.routes | dictsort %}
|
|
### {{ route.name }} - `{{ id }}`
|
|
{{ route.description }}
|
|
|
|
{% if route.routes %}
|
|
| Name | Route | Definition |
|
|
| -- | -- | -- |
|
|
{%- for subid, subroute in route.routes | dictsort %}
|
|
| {{ subroute.name }} | `{{ id }} {{ subid }}` | {% if 'secure' == subroute.permissions %}__Secure unlock required__ {% endif %}{{ subroute.description.split('\n')[0] }} |
|
|
{%- endfor %}
|
|
{% endif %}
|
|
{%- endfor %}
|