qmk_firmware/data/templates/xap/docs/route_response.md.j2

8 lines
270 B
Plaintext
Raw Normal View History

2022-09-26 00:09:15 +00:00
{%- if route.return_type == 'struct' -%}
__Response:__
2022-09-26 00:09:15 +00:00
{%- for member in route.return_struct_members -%}
2022-05-26 17:22:54 +00:00
<br>{{ "&nbsp;"|safe*4 }}* {{ member.name }}: `{{ member.type }}`
{%- endfor -%}
2022-09-26 00:09:15 +00:00
{%- elif route.return_type -%}
__Response:__ `{{ route.return_type }}`
2022-05-26 17:22:54 +00:00
{%- endif -%}