Revision 98e679e3
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/Controller/Layout.pm | ||
---|---|---|
sub action_empty {
|
||
my ($self) = @_;
|
||
|
||
if ($::form->{format} eq 'json') {
|
||
if ($::form->{format} eq 'json' || $::request->type eq 'json') {
|
||
my $layout = {
|
||
pre_content => $::request->{layout}->pre_content,
|
||
start_content => $::request->{layout}->start_content,
|
||
... | ... | |
};
|
||
|
||
$self->render(\ SL::JSON::to_json($layout), { type => 'json', process => 0 });
|
||
} else {
|
||
$self->render(\'', { process => 0 });
|
||
}
|
||
}
|
||
|
Auch abrufbar als: Unified diff
Layout/empty: empty.json und emty.html ermöglichen