code:: jinja

    Total: {{ items|sum(attribute='price') }}

.. versionchanged:: 2.6
   The ``attribute`` parameter was added to allow summing up over
   attributes.  Also the ``start`` parameter was moved on to the right.
)