Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ca86a307

Von Sven Schöling vor mehr als 10 Jahren hinzugefügt

  • ID ca86a307ee2df8ca82974016876709a7c4746d9a
  • Vorgänger 7ee5fab8
  • Nachfolger b58bafbb

Controller: content for header rendern

Hat zur Folge, dass Presenterwidgets benötigte stylesheets und
javascripts anfordern können.

Unterschiede anzeigen:

SL/Controller/Base.pm
$options->{layout} = 0 if $options->{type} ne 'html';
}
# Let the presenter do the rest of the work.
my $output;
{
local $::form->{title} = $locals{title} if $locals{title};
$output = $self->presenter->render(
$template,
{ type => $options->{type}, process => $options->{process} },
%locals,
SELF => $self,
);
}
if ($options->{header}) {
# Output the HTTP response and the layout in case of HTML output.
......
}
}
# Let the presenter do the rest of the work.
my $output = $self->presenter->render(
$template,
{ type => $options->{type}, process => $options->{process} },
%locals,
SELF => $self,
);
# Print the output if wanted.
print $output if $options->{output};

Auch abrufbar als: Unified diff