Revision ca86a307
Von Sven Schöling vor mehr als 10 Jahren hinzugefügt
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
Controller: content for header rendern
Hat zur Folge, dass Presenterwidgets benötigte stylesheets und
javascripts anfordern können.