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.
29 lines
1.0 KiB
Cheetah
29 lines
1.0 KiB
Cheetah
``{{event.type}}``
|
|
{{(4 + event.type | length) * title_kind}}
|
|
*{{event.typeof}}*
|
|
{{event.typeof_info}}
|
|
|
|
{{event.desc | wrap(80)}}
|
|
{% for table in event.content_fields -%}
|
|
{{"``"+table.title+"``" if table.title else "" }}
|
|
|
|
======================= ================= ===========================================
|
|
{{table.title or "Content"}} Key Type Description
|
|
======================= ================= ===========================================
|
|
{% for row in table.rows -%}
|
|
{# -#}
|
|
{# Row type needs to prepend spaces to line up with the type column (19 ch) -#}
|
|
{# Desc needs to prepend the required text (maybe) and prepend spaces too -#}
|
|
{# It also needs to then wrap inside the desc col (43 ch width) -#}
|
|
{# -#}
|
|
{{row.key}}{{row.type|indent(24-row.key|length)}}{{row.desc|wrap(43,row.req_str | indent(18 - (row.type|length))) |indent_block(42)}}
|
|
{% endfor -%}
|
|
======================= ================= ===========================================
|
|
|
|
{% endfor %}
|
|
Example:
|
|
|
|
.. code:: json
|
|
|
|
{{example | jsonify(4, 4)}}
|