|
This template prints some information about the <code>post</code> object.
|
|
|
|
<table style="font-family: monospace; font-size: xx-small;">
|
|
<tr>
|
|
<th> key </th>
|
|
<th> type </th>
|
|
<th> size </th>
|
|
</tr>
|
|
{% for key in post.__dict__ %}
|
|
<tr>
|
|
<td>{{ key }}</td>
|
|
<td>{{ post[key].__class__.__name__ }}</td>
|
|
{% if post[key].__class__ == post['compile_html'].__class__ %}
|
|
<td> callable method </td>
|
|
{% elif post[key].__class__ == post['messages'].__class__ %}
|
|
<td> [something complicated] </td>
|
|
{% elif post[key].__class__ in (dict, list, tuple) %}
|
|
<td>{{ post[key] | length }}</td>
|
|
{% else %}
|
|
<td>{{ post[key] }}</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|