add for else test
This commit is contained in:
parent
3490efe0c4
commit
1f13cc1500
2 changed files with 14 additions and 0 deletions
7
test/cases/statement_for_else/expected.html
Normal file
7
test/cases/statement_for_else/expected.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<ul>
|
||||
{% for user in users %}
|
||||
<li>{{ user.username|e }}</li>
|
||||
{% else %}
|
||||
<li><em>no users found</em></li>
|
||||
{% endfor %}
|
||||
</ul>
|
7
test/cases/statement_for_else/input.html
Normal file
7
test/cases/statement_for_else/input.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<ul>
|
||||
{% for user in users %}
|
||||
<li>{{ user.username|e }}</li>
|
||||
{%else %}
|
||||
<li><em>no users found</em></li>
|
||||
{% endfor %}
|
||||
</ul>
|
Loading…
Reference in a new issue