You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
matrix-spec/scripts/templating/matrix_templates/templates/schema-definition.tmpl

22 lines
480 B
Cheetah

{% import 'tables.tmpl' as tables -%}
``{{definition.title}}`` Schema
{{(11 + definition.title | length) * title_kind}}
{% if 'description' in definition %}
{{definition.description}}
{% endif %}
{% for table in definition.tables -%}
{{"``"+table.title+"``" if table.title else "" }}
{{ tables.paramtable(table.rows) }}
{% endfor %}
Example{% if examples | length > 1 %}s{% endif %}:
{% for example in examples %}
.. code:: json
{{example | jsonify(4, 4)}}
{% endfor %}