% layout 'AdminLTE', title => "Sme server 2 - E-Mail"; % content_for 'module' => begin % use constant FALSE => 0; % use constant TRUE => 1;
% if (config->{debug} == 1) {
            <%= dumper $c->current_route %>
            <%= dumper $mai_data->{trt} %>
        
% } % if ( stash 'error' ) {
<%= $c->render_to_string(inline => stash 'error') %>
%}

<%= $title%>


%#Routing to partials according to trt parameter. %#This ought to be cascading if/then/elsif, but is easier to just stack the if/then's rather like a case statement' % if ($mai_data->{trt} eq "FRONT") { <%= include 'partials/_mai_FRONT' %> % } % if ($mai_data->{trt} eq "ACC") { <%= include 'partials/_mai_ACC' %> % } % if ($mai_data->{trt} eq "FIL") { <%= include 'partials/_mai_FIL' %> % } % if ($mai_data->{trt} eq "REC") { <%= include 'partials/_mai_REC' %> % } % if ($mai_data->{trt} eq "DEL") { <%= include 'partials/_mai_DEL' %> % }
%end