projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Yaffs site version 1.1
[yaffs-website]
/
vendor
/
twig
/
twig
/
test
/
Twig
/
Tests
/
Fixtures
/
tags
/
filter
/
with_if_tag.test
1
--TEST--
2
"filter" tag applies the filter on "if" tags
3
--TEMPLATE--
4
{% filter upper %}
5
{% if items %}
6
{{ items|join(', ') }}
7
{% endif %}
8
9
{% if items.3 is defined %}
10
FOO
11
{% else %}
12
{{ items.1 }}
13
{% endif %}
14
15
{% if items.3 is defined %}
16
FOO
17
{% elseif items.1 %}
18
{{ items.0 }}
19
{% endif %}
20
21
{% endfilter %}
22
--DATA--
23
return array('items' => array('a', 'b'))
24
--EXPECT--
25
A, B
26
27
B
28
29
A