If there is a forloop nested within another forloop, the use of {{forloop.index}}
is blocked anywhere preceding the nested forloop.
eg; In BC the following code and output seems correct:
{% for i in (1..4) %}
*{{forloop.index}}*<br>
{% for x in (1..2) %}
^{{forloop.index}}^<br>
{% endfor %}
#{{forloop.index}}#<br>
{% endfor %}
OUTPUT:
*1*
^1^
^2^
#1#
*2*
^1^
^2^
#2#
*3*
^1^
^2^
#3#
*4*
^1^
^2^
#4#
But, in Treepl the same liquid forloop renders as:
*1*
^1^
^2^
##
**
^1^
^2^
##
**
^1^
^2^
##
**
^1^
^2^
##
After the nested forloop executes, the top level indexes are no longer rendered.