/
test.tpl
80 lines (67 loc) · 1.34 KB
/
test.tpl
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0" charset="utf-8" ?>
<!DOCTYPE html>
<html>
<head>
<title>{$name}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<p>
Hej jag heter {$name|lower|upper}!
</p>
<p>
Tre citat-tecken: """
</p>
<p>
Sju citat-tecken: """""""
</p>
{if $test == 4}
<h1>Test är fyra</h1>
{elseif $test == 5}
<h1>Test är fem</h1>
{else}
<h1>Test är inte fyra</h1>
{/if}
<ul>
{for $i=1 to $test}
<li>Nummer {$i}</li>
{/for}
</ul>
<ul>
{for $i=$test to 38 step $test}
<li>Nummer {$i}</li>
{/for}
</ul>
<ul>
{for $i=15 to $test step -2}
<li>Nummer {$i}</li>
{/for}
</ul>
<ul>
{for $i=15 to -$test step -2}
<li>Nummer {$i}</li>
{/for}
</ul>
<ul>
{for $i=-15 to -$test step 2}
<li>Nummer {$i}</li>
{/for}
</ul>
<ol>
{foreach $colors as $key=>$val}
<li>{$val} ({$key})</li>
{/foreach}
</ol>
<ol>
{foreach $colors as $val}
<li>{$val|upper}</li>
{/foreach}
</ol>
<script type="text/javascript">
console.log({
a: "hej",
b: {ldelim}"då": "re"{rdelim}
});
</script>
</body>
</html>