summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example.tea
blob: 6859e34d51d47ab0e9f3191b2f7222133c8db661 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 & ";"
}

%>