2023-06-27 06:28:23 +00:00
|
|
|
%# Because this is a text template (vs HTML) the whitespace is
|
|
|
|
%# significant. Ending a line of embedded Perl with an equal sign
|
|
|
|
%# will prevent some editors from auto-indenting the next line, hence
|
|
|
|
%# the '#=' comment at the end of some lines.
|
|
|
|
% if (keys %{$thread}) { #=
|
2023-11-25 17:41:45 +00:00
|
|
|
Thread #<%= $thread->{'id'} %>
|
2023-06-27 06:57:24 +00:00
|
|
|
%= $thread->{'date' };
|
|
|
|
%== $thread->{'title' };
|
|
|
|
%== $thread->{'author'} . "\n";
|
|
|
|
%== $thread->{'body' };
|
2023-06-27 06:28:23 +00:00
|
|
|
% } else { #=
|
|
|
|
%= stash 'error';
|
|
|
|
% } #=
|