-{% for header in headers %}<th class="{{ header.class_attr }}">
+{% for header in headers %}<th class="{{ header.class_attr }}"
+ style="{% for k,v in header.style_attr.items %}
+ {{ k }}:{{ v }};
+ {% endfor %}">
{% if header.sortable %}<a href="{{ header.url|escape }}">{% endif %}
{{ header.text }}
{% if header.sortable %}</a>{% endif %}