1 package SL::Controller::Layout;
4 use parent qw(SL::Controller::Base);
11 if ($::form->{format} eq 'json') {
13 pre_content => $::request->{layout}->pre_content,
14 start_content => $::request->{layout}->start_content,
15 end_content => $::request->{layout}->end_content,
16 post_content => $::request->{layout}->post_content,
17 javascripts => [ $::request->{layout}->javascripts ],
18 javascripts_inline => [ $::request->{layout}->javascripts_inline ],
19 stylesheets => [ $::request->{layout}->stylesheets ],
20 stylesheets_inline => [ $::request->{layout}->stylesheets_inline ],
23 $self->render(\ SL::JSON::to_json($layout), { type => 'json', process => 0 });