matrix-spec/templating/matrix_templates/templates/events.tmpl

22 lines
519 B
Cheetah
Raw Normal View History

{% import 'tables.tmpl' as tables -%}
``{{event.type}}``
{{(4 + event.type | length) * title_kind}}
*{{event.typeof}}*
{{event.typeof_info}}
{{event.desc | wrap(80)}}
2016-02-23 15:43:36 +01:00
{% for table in event.content_fields %}
{{"``"+table.title+"``" if table.title else "" }}
{{ tables.paramtable(table.rows, [(table.title or "Content") ~ " Key", "Type", "Description"]) }}
{% endfor %}
2015-10-28 16:00:53 +01:00
Example{% if examples | length > 1 %}s{% endif %}:
2015-10-28 16:00:53 +01:00
{% for example in examples %}
.. code:: json
{{example | jsonify(4, 4)}}
2015-10-28 16:00:53 +01:00
{% endfor %}