12 lines
445 B
Django/Jinja
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 %}
|