qmk_firmware/data/templates/xap/docs/route_response.md.j2
2022-09-29 23:44:19 +01:00

8 lines
270 B
Django/Jinja

{%- if route.return_type == 'struct' -%}
__Response:__
{%- for member in route.return_struct_members -%}
<br>{{ "&nbsp;"|safe*4 }}* {{ member.name }}: `{{ member.type }}`
{%- endfor -%}
{%- elif route.return_type -%}
__Response:__ `{{ route.return_type }}`
{%- endif -%}