summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example.tea
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-01-17 17:00:26 +0100
committerGeorg Brandl <georg@python.org>2016-01-17 17:00:26 +0100
commitfc55dc2e95bcea03fbc0d8e1d130c9e53f3f1dad (patch)
tree2a06d2fac7321452513bda7739e297a7e9848ec4 /tests/examplefiles/example.tea
downloadpygments-git-fc55dc2e95bcea03fbc0d8e1d130c9e53f3f1dad.tar.gz
merge default into stable
Diffstat (limited to 'tests/examplefiles/example.tea')
-rw-r--r--tests/examplefiles/example.tea34
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