mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-30 19:49:54 +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
39
tests/template/templates/loop_size_twig.html
Normal file
39
tests/template/templates/loop_size_twig.html
Normal file
@@ -0,0 +1,39 @@
|
||||
{% if nonexistent_loop|length %}
|
||||
nonexistent
|
||||
{% endif %}
|
||||
|
||||
{% if nonexistent_loop|length == 0 %}
|
||||
nonexistent = 0
|
||||
{% endif %}
|
||||
|
||||
{% if ! nonexistent_loop|length %}
|
||||
! nonexistent
|
||||
{% endif %}
|
||||
|
||||
{% if empty_loop|length %}
|
||||
empty
|
||||
{% endif %}
|
||||
|
||||
{% if empty_loop|length == 0 %}
|
||||
empty = 0
|
||||
{% endif %}
|
||||
|
||||
{% if ! empty_loop|length %}
|
||||
! empty
|
||||
{% endif %}
|
||||
|
||||
{% if test_loop|length %}
|
||||
loop
|
||||
{% endif %}
|
||||
|
||||
{% if test_loop|length == 0 %}
|
||||
loop = 0
|
||||
{% endif %}
|
||||
|
||||
{% if ! test_loop|length %}
|
||||
! loop
|
||||
{% endif %}
|
||||
|
||||
{% for test_loop_inner in test_loop %}
|
||||
in loop
|
||||
{% endfor %}
|
Reference in New Issue
Block a user