ul if you expect the template to be rendered with an implementation of Jinja in another programming language that does not have a ``.items()`` method on its mapping type. .. code-block:: html+jinja
{% for key, value in my_dict|items %}
{{ key }}
{{ value }} {% endfor %}
.. versionadded:: 3.1 Nz'Can only get item pairs from a mapping.)