on master help sign in
Added a test case for "if" statements in templates.
commit7d489f314d553019c04905a912bc27448b4ec241 authorIvan N. Veselov <veselov@gmail.com> dateFri 3 May 2013, 19:29 (13 years ago) parent9c53004
2 files changed+18
tests/data/template.html+11 tests/data/template.html.out+7
tests/data/template.html+11
@@ -1,5 +1,16 @@
11<div>
22 I'm so rich I have $$3.
33 $echo test$
4+ $if(body)$
5+ I have body
6+ $else$
7+ or no
8+ $endif$
9+ $if(unbound)$
10+ should not be printed
11+ $endif$
12+ $if(body)$
13+ should be printed
14+ $endif$
415 $body$
516</div>
tests/data/template.html.out+7
@@ -1,5 +1,12 @@
11<div>
22 I'm so rich I have $3.
33 test
4+
5+ I have body
6+
7+
8+
9+ should be printed
10+
411 <p>This is an example.</p>
512</div>