{% for key, value in results.items %} {% if key in details %} {% endif %} {% endfor %}
{{ key|capfirst }}{{ value }}