diff options
Diffstat (limited to 'tests/examplefiles/example.tea')
| -rw-r--r-- | tests/examplefiles/example.tea | 34 | 
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/examplefiles/example.tea b/tests/examplefiles/example.tea new file mode 100644 index 00000000..6859e34d --- /dev/null +++ b/tests/examplefiles/example.tea @@ -0,0 +1,34 @@ +<% template example() {...} +a = 123 +b = "test"; +c = 4.5 +d = call other() +f = other2() + +define g as String + +h = true +i = false +j = null +%> +<html> +<head> +<title>Example<title> +<body> +<a href="http://example.com">Test link</a> +<% // Second block +if(a == 123 and b == "test") { +    'yes' +} else { +    'no' +} + +foreach(i in 1..10) { +    i & "," +} + +foreach(i in #(1,2,3) reverse { +    i & ";" +} + +%>
\ No newline at end of file  | 
