Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make conditionals tests pass with django syntax.
- Loading branch information
Maxim Avanov
committed
Mar 23, 2014
1 parent
717ac26
commit b910c4c
Showing
5 changed files
with
138 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% if True %} | ||
<div>1 Test</div> | ||
{% endif %} | ||
<div>2 Test</div>------------------------------------ | ||
|
||
{% if False %} | ||
<div>3 False Test</div> | ||
{% if True %} | ||
<div>4 Test</div> | ||
{% endif %} | ||
<div>5 Test</div> | ||
{% elif True %} | ||
<div>6 True Test</div> | ||
{% elif 1 == 1 %} | ||
<div>7 Test</div> | ||
{% else %} | ||
<div>8 Else Test</div> | ||
{% endif %} | ||
|
||
{% if False %} | ||
|
||
{% elif True %} | ||
|
||
{% else %} | ||
|
||
{% endif %} | ||
{% if (a == b) or (c == d) %} | ||
Test | ||
{% elif (e == f) %} | ||
Test2 | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
|
||
- if True | ||
div 1 Test | ||
div 2 Test | ||
|
||
|------------------------------------ | ||
|
||
-if False | ||
div 3 False Test | ||
- if True | ||
div 4 Test | ||
div 5 Test | ||
-elif True | ||
div 6 True Test | ||
- elif 1 == 1 | ||
div 7 Test | ||
-else | ||
div 8 Else Test | ||
|
||
-if False | ||
-elif True | ||
-else | ||
|
||
/-------------------------------- | ||
- if ( | ||
a == b | ||
) or ( | ||
c == d) | ||
|Test | ||
-elif ( | ||
e == f | ||
) | ||
|Test2 |