diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-17 11:20:43 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-17 11:20:43 +0200 |
commit | 38f8e2242353711d5c87c58f3831306934d2e6b7 (patch) | |
tree | 92ec8e297731fb1de90b0e465bb52207bbe5c037 /t | |
parent | 4b0e767fd645687e8d2a5ded778c57b8cf42bc4a (diff) | |
download | cforum-38f8e2242353711d5c87c58f3831306934d2e6b7.tar.gz |
Compartmentalize
Diffstat (limited to 't')
-rw-r--r-- | t/err.t | 2 | ||||
-rw-r--r-- | t/err.tc | 5 | ||||
-rw-r--r-- | t/foot.t | 2 | ||||
-rw-r--r-- | t/foot.tc | 1 | ||||
-rw-r--r-- | t/front.t | 2 | ||||
-rw-r--r-- | t/front.tc | 4 | ||||
-rw-r--r-- | t/head.t | 7 | ||||
-rw-r--r-- | t/head.tc | 3 |
8 files changed, 26 insertions, 0 deletions
@@ -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>"); |