From f8ef7e4a7c538bf392237c6c29caa9dedca6e29e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 18 Sep 2021 02:25:16 +0200 Subject: Add README for mktpl --- t/front.t | 10 +++------- t/post.t | 16 ++++------------ 2 files changed, 7 insertions(+), 19 deletions(-) (limited to 't') diff --git a/t/front.t b/t/front.t index 5c88166..fcdecdb 100644 --- a/t/front.t +++ b/t/front.t @@ -2,17 +2,13 @@

<%= site.name %>

Latest posts

- <% - while(post = getpost(stmt, 0)){ - user = getuser(byid("users", post->user), 1); - %> + <% while(post = getpost(stmt, 0)){ + user = getuser(byid("users", post->user), 1); %> - <% - } - %> + <% } %>
id); %>"><%= post->subject %> user); %>"><%= user->name %> <% printdate(post->created); %>
<% #include "foot.tc" %> \ No newline at end of file diff --git a/t/post.t b/t/post.t index deeb285..549b4ec 100644 --- a/t/post.t +++ b/t/post.t @@ -13,24 +13,16 @@
 <%= post->text %>
 
-<% -if(attachment = getattachment(stmt, 0)){ -%> +<% if(attachment = getattachment(stmt, 0)){ %>

Attachments

- <% - do{ - %> + <% do{ %> - <% - }while(attachment = getattachment(stmt, 0)); - %> + <% }while(attachment = getattachment(stmt, 0)); %>
id); %>"><%= attachment->name %> <%= attachment->mime %> <%= attachment->description %>
-<% -} -%> +<% } %> <% #include "foot.tc" %> \ No newline at end of file -- cgit v1.2.3