diff --git a/doc/tags/for.rst b/doc/tags/for.rst index 722861ab5..e39a59b24 100644 --- a/doc/tags/for.rst +++ b/doc/tags/for.rst @@ -155,3 +155,17 @@ You can also access both keys and values:
  • {{ key }}: {{ user.username|e }}
  • {% endfor %} + +Iterating over Subset +--------------------- + +You might want to iterate over a subset of values. This can be achieved using the ``slice`` filter: + +.. code-block:: jinja + +

    Top Ten Members

    +