mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 04:04:12 +02:00
[ticket/13132] Twig: Add loops content to the root context
PHPBB3-13132
This commit is contained in:
committed by
Nicofuma
parent
70990bc86f
commit
cf39cfc593
6
tests/template/templates/loop_nested_twig.html
Normal file
6
tests/template/templates/loop_nested_twig.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{% for outer_inner in outer %}
|
||||
outer - {{ outer_inner.S_ROW_COUNT }}{% if outer_inner.VARIABLE %} - {{ outer_inner.VARIABLE }}{% endif %}{% if TEST_MORE %}[{{ outer_inner.S_BLOCK_NAME }}|{{ outer_inner.S_NUM_ROWS }}]{% endif %}
|
||||
{% for middle in outer_inner.middle %}
|
||||
middle - {{ middle.S_ROW_COUNT }}{% if middle.VARIABLE %} - {{ middle.VARIABLE }}{% endif %}{% if TEST_MORE %}[{{ middle.S_BLOCK_NAME }}|{{ middle.S_NUM_ROWS }}]{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
Reference in New Issue
Block a user