Fixed the text templates
This commit is contained in:
parent
402c550b74
commit
6ceb26ee8f
|
@ -1,9 +1,12 @@
|
|||
% if (keys %{$remark}) {
|
||||
%# 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 %{$remark}) { #=
|
||||
%= $remark->{'id' };
|
||||
%= $remark->{'date' };
|
||||
%= $remark->{'author'};
|
||||
|
||||
%= $remark->{'author'} . "\n";
|
||||
%= $remark->{'body' };
|
||||
% } else {
|
||||
% } else { #=
|
||||
%= stash 'error';
|
||||
% }
|
||||
% } #=
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
% if (keys %{$thread}) {
|
||||
%# 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->{'id' };
|
||||
%= $thread->{'title' };
|
||||
%= $thread->{'date' };
|
||||
%= $thread->{'author'};
|
||||
|
||||
%= $thread->{'author'} . "\n";
|
||||
%= $thread->{'body' };
|
||||
% } else {
|
||||
% } else { #=
|
||||
%= stash 'error';
|
||||
% }
|
||||
% } #=
|
||||
|
|
Loading…
Reference in a new issue