% if (keys %{$remark}) { %= $remark->{'id'}; %= $remark->{'date'}; %= $remark->{'author'}; %= $remark->{'body'}; % } else { %= stash 'error'; % }