From 7d65ce8c8e304dc8367f4492948514f2acc07a3b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= <%= err %> <%= err %> ");
printf("%s", err );
-printf("<%= title %>
-");
+#include "head.tc"
+printf("\n
");
printf("%s", title );
printf("
\n
Thanks for the <%= getenv("REQUEST_METHOD") %> request!
Key | -Value | -||
<%= p %> | -<%= v %> | +user); %>"><%= + user->name + %> | +id); %>"><%= + post->subject + %> |
Thanks for the "); printf("%s", getenv("REQUEST_METHOD") ); -printf(" request!
\nKey | \nValue | \n
"); -printf("%s", p ); -printf(" | \n"); -printf("%s", v ); -printf(" | \n
user); +printf("\">"); +printf("%s", + user->name + ); +printf(" | \nid); +printf("\">"); +printf("%s", + post->subject + ); +printf(" | \n
From: <%= user->full? user->full: "" %> <% -if(user->full) printf("<"); -%>id); %>"><%= user->name %><% -if(user->full) printf(">"); %> +
From: <%= user->full? user->full: "" %>
+<% if(user->full) printf("<"); %>id); %>"><%= user->name %><% if(user->full) printf(">"); %>
Date: <% printdate(post->created); %>
<% if(post->edited){
printf("
Edited: ");
printdate(post->edited);
} %>
+<% if(post->parent){ %>
+
In Reply To: parent); %>"><% printf("%d", post->parent); %>
+<% } %>
<%= post->text %> -\ No newline at end of file + +<% #include "foot.tc" %> \ No newline at end of file diff --git a/t/post.tc b/t/post.tc index 732f0a7..9207de5 100644 --- a/t/post.tc +++ b/t/post.tc @@ -1,12 +1,12 @@ -printf("
From: ");
printf("%s", user->full? user->full: "" );
-printf(" ");
-if(user->full) printf("<");
-
+printf("\n");
+if(user->full) printf("<");
printf("id);
printf("\">");
@@ -20,6 +20,15 @@ if(post->edited){
printf("
Edited: ");
printdate(post->edited);
}
+printf("\n");
+if(post->parent){
+printf("\n
In Reply To: parent);
+printf("\">");
+printf("%d", post->parent);
+printf("\n");
+}
printf("\n
\n"); printf("%s", post->text ); -printf("\n"); +printf("\n\n"); +#include "foot.tc" diff --git a/t/user.t b/t/user.t index 9a0fd49..af7c8cd 100644 --- a/t/user.t +++ b/t/user.t @@ -1 +1,3 @@ -