% layout 'main';
% title 'Threads List';
<%= title %>
<% for my $thread (@{$threads}) { =%>
<%= $thread->{'title'} %>
<%= $thread->{'date'} %>
<%= $thread->{'author'} %>
<%= $thread->{'body'} %>
<% } =%>
<% if ($last_page && $last_page != 1) { =%>
<% } =%>