{% for c in columns %}
{% if r[loop.index0] == None %}
|
{% elif c.type in ['integer', 'float'] %}
{{ r[loop.index0] }} |
{% elif c.type == 'datetime' %}
{{ r[loop.index0].strftime('%Y-%m-%d %H:%M:%S') }} |
{% elif c.type == 'boolean' %}
|
{% else %}
{{ r[loop.index0] }} |
{% endif %}
{% endfor %}
{% endfor %}