Revision ca86a307
Von Sven Schöling vor etwa 10 Jahren hinzugefügt
SL/Controller/Base.pm | ||
---|---|---|
98 | 98 |
$options->{layout} = 0 if $options->{type} ne 'html'; |
99 | 99 |
} |
100 | 100 |
|
101 |
# Let the presenter do the rest of the work. |
|
102 |
my $output; |
|
103 |
{ |
|
104 |
local $::form->{title} = $locals{title} if $locals{title}; |
|
105 |
$output = $self->presenter->render( |
|
106 |
$template, |
|
107 |
{ type => $options->{type}, process => $options->{process} }, |
|
108 |
%locals, |
|
109 |
SELF => $self, |
|
110 |
); |
|
111 |
} |
|
112 |
|
|
101 | 113 |
if ($options->{header}) { |
102 | 114 |
# Output the HTTP response and the layout in case of HTML output. |
103 | 115 |
|
... | ... | |
120 | 132 |
} |
121 | 133 |
} |
122 | 134 |
|
123 |
# Let the presenter do the rest of the work. |
|
124 |
my $output = $self->presenter->render( |
|
125 |
$template, |
|
126 |
{ type => $options->{type}, process => $options->{process} }, |
|
127 |
%locals, |
|
128 |
SELF => $self, |
|
129 |
); |
|
130 |
|
|
131 | 135 |
# Print the output if wanted. |
132 | 136 |
print $output if $options->{output}; |
133 | 137 |
|
Auch abrufbar als: Unified diff
Controller: content for header rendern
Hat zur Folge, dass Presenterwidgets benötigte stylesheets und
javascripts anfordern können.