aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/err.t2
-rw-r--r--t/err.tc5
-rw-r--r--t/foot.t2
-rw-r--r--t/foot.tc1
-rw-r--r--t/front.t2
-rw-r--r--t/front.tc4
-rw-r--r--t/head.t7
-rw-r--r--t/head.tc3
8 files changed, 26 insertions, 0 deletions
diff --git a/t/err.t b/t/err.t
new file mode 100644
index 0000000..437effc
--- /dev/null
+++ b/t/err.t
@@ -0,0 +1,2 @@
+<h1><%= title %></h1>
+<p><%= err %></p> \ No newline at end of file
diff --git a/t/err.tc b/t/err.tc
new file mode 100644
index 0000000..f6d48ab
--- /dev/null
+++ b/t/err.tc
@@ -0,0 +1,5 @@
+printf("<h1>");
+printf("%s", title );
+printf("</h1>\n<p>");
+printf("%s", err );
+printf("</p>\n");
diff --git a/t/foot.t b/t/foot.t
new file mode 100644
index 0000000..691287b
--- /dev/null
+++ b/t/foot.t
@@ -0,0 +1,2 @@
+</body>
+</html> \ No newline at end of file
diff --git a/t/foot.tc b/t/foot.tc
new file mode 100644
index 0000000..927824c
--- /dev/null
+++ b/t/foot.tc
@@ -0,0 +1 @@
+printf("</body>\n</html>");
diff --git a/t/front.t b/t/front.t
new file mode 100644
index 0000000..ed6fbf8
--- /dev/null
+++ b/t/front.t
@@ -0,0 +1,2 @@
+<h1><%= site.name %></h1>
+<% printf("Hello world!"); %> \ No newline at end of file
diff --git a/t/front.tc b/t/front.tc
new file mode 100644
index 0000000..0d7aec3
--- /dev/null
+++ b/t/front.tc
@@ -0,0 +1,4 @@
+printf("<h1>");
+printf("%s", site.name );
+printf("</h1>\n");
+ printf("Hello world!"); printf("\n");
diff --git a/t/head.t b/t/head.t
new file mode 100644
index 0000000..d9da813
--- /dev/null
+++ b/t/head.t
@@ -0,0 +1,7 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+<title><%= title %></title>
+</head>
+<body> \ No newline at end of file
diff --git a/t/head.tc b/t/head.tc
new file mode 100644
index 0000000..c19b483
--- /dev/null
+++ b/t/head.tc
@@ -0,0 +1,3 @@
+printf("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\">\n<title>");
+printf("%s", title );
+printf("</title>\n</head>\n<body>");