From 7d489f314d553019c04905a912bc27448b4ec241 Mon Sep 17 00:00:00 2001 From: "Ivan N. Veselov" Date: Fri, 3 May 2013 19:29:50 +0300 Subject: Added a test case for "if" statements in templates. --- tests/data/template.html | 11 +++++++++++ tests/data/template.html.out | 7 +++++++ 2 files changed, 18 insertions(+) (limited to 'tests/data') diff --git a/tests/data/template.html b/tests/data/template.html index a8d78eb..6f668ee 100644 --- a/tests/data/template.html +++ b/tests/data/template.html @@ -1,5 +1,16 @@
I'm so rich I have $$3. $echo test$ + $if(body)$ + I have body + $else$ + or no + $endif$ + $if(unbound)$ + should not be printed + $endif$ + $if(body)$ + should be printed + $endif$ $body$
diff --git a/tests/data/template.html.out b/tests/data/template.html.out index 8bd1879..5c201e2 100644 --- a/tests/data/template.html.out +++ b/tests/data/template.html.out @@ -1,5 +1,12 @@
I'm so rich I have $3. test + + I have body + + + + should be printed +

This is an example.

-- cgit v1.2.3