docs-matrix-spec/scripts/templating/matrix_templates/templates/schema-definition.tmpl
2018-07-31 13:55:53 -06:00

21 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 %}