projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Security update for Core, with self-updated composer
[yaffs-website]
/
vendor
/
twig
/
twig
/
test
/
Twig
/
Tests
/
Fixtures
/
tags
/
for
/
loop_not_defined.test
1
--TEST--
2
"for" tag
3
--TEMPLATE--
4
{% for i, item in items if i > 0 %}
5
{{ loop.last }}
6
{% endfor %}
7
--DATA--
8
return array('items' => array('a', 'b'))
9
--EXCEPTION--
10
Twig_Error_Syntax: The "loop.last" variable is not defined when looping with a condition in "index.twig" at line 3.