Skip to content
Browse files

tweaked previous merge

  • Loading branch information...
1 parent 34b0328 commit e8991cc2f9c84b2b5c782203904898717d46e56a @fabpot committed Mar 25, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 doc/tags/for.rst
View
9 doc/tags/for.rst
@@ -156,16 +156,17 @@ You can also access both keys and values:
{% endfor %}
</ul>
-Iterating over Subset
----------------------
+Iterating over a Subset
+-----------------------
-You might want to iterate over a subset of values. This can be achieved using the :doc:`slice<../filters/slice>` filter:
+You might want to iterate over a subset of values. This can be achieved using
+the :doc:`slice <../filters/slice>` filter:
.. code-block:: jinja
<h1>Top Ten Members</h1>
<ul>
- {% for user in users|slice(0,10) %}
+ {% for user in users|slice(0, 10) %}
<li>{{ user.username|e }}</li>
{% endfor %}
</ul>

0 comments on commit e8991cc

Please sign in to comment.
Something went wrong with that request. Please try again.