{% macro apply_classes(classes) -%} {# Apply css classes inside an element. Usage:
{{ header_macros[heading](heading) }} | {% else %}{{ heading }} | {% endif %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% for obj in objs %}
---|---|
{# Handle all primary key links, a common occurence #} {% if pk_link and k == 'id' %} {{ v }} {% elif handle_links and v|is_url %} {{ v }} {% elif k in field_macros.keys() %} {# If a field macro is specified by key, call it on this field for arbitrary levels of customization #} {{ field_macros[k](v) }} {% else %} {{ v }} {% endif %} | {% else %}{% endif %} {% endif %} {% endfor %} |
Error(s) for '{{ field }}':