1 package SL::Layout::Split;
4 use parent qw(SL::Layout::Base);
6 use SL::Presenter::Tag qw(html_tag);
8 use Rose::Object::MakeMethods::Generic (
9 'scalar' => [ qw(left right) ],
13 @{ $_[0]->left || [] },
14 @{ $_[0]->right || [] },
18 my $left = join '', map { $_->pre_content } @{ $_[0]->left || [] };
19 my $right = join '', map { $_->pre_content } @{ $_[0]->right || [] };
21 html_tag('div', $left, class => 'layout-split-left')
22 .'<div class="layout-split-right">' . $right;
26 my $left = join '', map { $_->post_content } @{ $_[0]->left || [] };
27 my $right = join '', map { $_->post_content } @{ $_[0]->right || [] };
30 . html_tag('div', $left, class => 't-layout-left');
45 use SL::Layout::Split;
47 SL::Layout::Split->new(
48 left => [ LIST OF SUBLAYOUTS ],
49 right => [ LIST OF SUBLAYOUTS ],
54 Layout with left and right components, with content being part of the
59 Due to the way content is serialized it's currently not possible to shift the content into the other blocks
63 Sven Schöling E<lt>s.schoeling@linet-services.deE<gt>