From 38f8e2242353711d5c87c58f3831306934d2e6b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 17 Sep 2021 11:20:43 +0200 Subject: Compartmentalize --- t/err.t | 2 ++ t/err.tc | 5 +++++ t/foot.t | 2 ++ t/foot.tc | 1 + t/front.t | 2 ++ t/front.tc | 4 ++++ t/head.t | 7 +++++++ t/head.tc | 3 +++ 8 files changed, 26 insertions(+) create mode 100644 t/err.t create mode 100644 t/err.tc create mode 100644 t/foot.t create mode 100644 t/foot.tc create mode 100644 t/front.t create mode 100644 t/front.tc create mode 100644 t/head.t create mode 100644 t/head.tc (limited to 't') 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 @@ +

<%= title %>

+

<%= err %>

\ 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("

"); +printf("%s", title ); +printf("

\n

"); +printf("%s", err ); +printf("

\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 @@ + + \ 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("\n"); 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 @@ +

<%= site.name %>

+<% 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("

"); +printf("%s", site.name ); +printf("

\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 @@ + + + + +<%= title %> + + \ 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("\n\n\n\n"); +printf("%s", title ); +printf("\n\n"); -- cgit v1.2.3