Changeset 8154
- Timestamp:
- 07/30/08 07:37:38 (5 months ago)
- Files:
-
- django/trunk/docs/templates.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/templates.txt
r8095 r8154 704 704 **New in Django development version** 705 705 If you need to loop over a list of lists, you can unpack the values 706 in each s sub-list into a set of known names. For example, if your context contains707 a list of (x,y) coordinates called ``points``, you could use the following 708 to output the list of points::706 in each sub-list into individual variables. For example, if your context 707 contains a list of (x,y) coordinates called ``points``, you could use the 708 following to output the list of points:: 709 709 710 710 {% for x, y in points %}
