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
|
||||||
%= $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';
|
||||||
|
% } #=
|
||||||
|
|
|
@ -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';
|
||||||
|
% } #=
|
||||||
|
|
Loading…
Reference in New Issue
Block a user