14 lines
450 B
Plaintext
14 lines
450 B
Plaintext
%# 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}) { #=
|
|
Thread #<%= $thread->{'id'} %>
|
|
%= $thread->{'date' };
|
|
%== $thread->{'title' };
|
|
%== $thread->{'author'} . "\n";
|
|
%== $thread->{'body' };
|
|
% } else { #=
|
|
%= stash 'error';
|
|
% } #=
|