% title $name ? "Account $name" : "Create account"; % my %r; % $r{ID} = begin % end % $r{type} = begin (<%= join(", ", @$types) %> or a new?) % end % $r{altId} = begin % end % $r{IBAN} = begin % end
% for my $f ( $account->result_source->columns ) { % my $renderer = $r{$f} // do { % my $value = $account->$f // next; % begin <%= $value %> % end % };
<%= $renderer->() %>
% }