Merge pull request #364 from martey/ticket_18933
Fixed #18933 - Fixes code example for cycle in docstring.
This commit is contained in:
commit
87c06fa4f4
|
@ -531,11 +531,9 @@ def cycle(parser, token):
|
||||||
The optional flag "silent" can be used to prevent the cycle declaration
|
The optional flag "silent" can be used to prevent the cycle declaration
|
||||||
from returning any value::
|
from returning any value::
|
||||||
|
|
||||||
{% cycle 'row1' 'row2' as rowcolors silent %}{# no value here #}
|
|
||||||
{% for o in some_list %}
|
{% for o in some_list %}
|
||||||
<tr class="{% cycle rowcolors %}">{# first value will be "row1" #}
|
{% cycle 'row1' 'row2' as rowcolors silent %}
|
||||||
...
|
<tr class="{{ rowcolors }}">{% include "subtemplate.html " %}</tr>
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue