Fixed the text templates

This commit is contained in:
swag 2023-06-27 02:28:23 -04:00
parent 402c550b74
commit 6ceb26ee8f
2 changed files with 25 additions and 19 deletions

View File

@ -1,9 +1,12 @@
% if (keys %{$remark}) { %# Because this is a text template (vs HTML) the whitespace is
%= $remark->{'id'}; %# significant. Ending a line of embedded Perl with an equal sign
%= $remark->{'date'}; %# will prevent some editors from auto-indenting the next line, hence
%= $remark->{'author'}; %# the '#=' comment at the end of some lines.
% if (keys %{$remark}) { #=
%= $remark->{'body'}; %= $remark->{'id' };
% } else { %= $remark->{'date' };
%= stash 'error'; %= $remark->{'author'} . "\n";
% } %= $remark->{'body' };
% } else { #=
%= stash 'error';
% } #=

View File

@ -1,10 +1,13 @@
% if (keys %{$thread}) { %# Because this is a text template (vs HTML) the whitespace is
%= $thread->{'id'}; %# significant. Ending a line of embedded Perl with an equal sign
%= $thread->{'title'}; %# will prevent some editors from auto-indenting the next line, hence
%= $thread->{'date'}; %# the '#=' comment at the end of some lines.
%= $thread->{'author'}; % if (keys %{$thread}) { #=
%= $thread->{'id' };
%= $thread->{'body'}; %= $thread->{'title' };
% } else { %= $thread->{'date' };
%= stash 'error'; %= $thread->{'author'} . "\n";
% } %= $thread->{'body' };
% } else { #=
%= stash 'error';
% } #=