on master help sign in
Added a test case for "if" statements in templates.
7d489f3Ivan N. Veselov
tests/data/template.html+11
@@ -1,5 +1,16 @@
1<div>
1<div>
2 I'm so rich I have $$3.
2 I'm so rich I have $$3.
3 $echo test$
3 $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$
4 $body$
15 $body$
5</div>
16</div>
tests/data/template.html.out+7
@@ -1,5 +1,12 @@
1<div>
1<div>
2 I'm so rich I have $3.
2 I'm so rich I have $3.
3 test
3 test
4+
5+ I have body
6+
7+
8+
9+ should be printed
10+
4 <p>This is an example.</p>
11 <p>This is an example.</p>
5</div>
12</div>