% layout 'default'; % title "Thread #$thread->{'id'}";

<%= title %>

<%= $thread->{'title'} %>

<%= $thread->{'date'} %>

<%= $thread->{'author'} %>
<%== markdown $thread->{'body'} =%>
<% if (is_mod) { =%> <% } =%> <% if (my $first_remark = $remarks->[0]) { =%>

Remarks

<% for my $remark (@{$remarks}) { =%>

<%= $remark->{'date'} %>

<%= $remark->{'author'} %>
<%== markdown $remark->{'body'} =%>
<% } =%>
<% } =%>