X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FReaction%2FUI%2FViewPort.pm;fp=lib%2FReaction%2FUI%2FViewPort.pm;h=ed9722e02648320664e9bc1a0ea02d6507d119d1;hb=4ad1eed3fe0f8a90080c63ec474e4634376f0f95;hp=c86c7939de338618fb68799b9395ae559451972b;hpb=b5a45848e42a559b828c46167f98c507a3ac8fc3;p=catagits%2FReaction.git diff --git a/lib/Reaction/UI/ViewPort.pm b/lib/Reaction/UI/ViewPort.pm index c86c793..ed9722e 100644 --- a/lib/Reaction/UI/ViewPort.pm +++ b/lib/Reaction/UI/ViewPort.pm @@ -250,6 +250,16 @@ The layout attribute can either be specifically passed when calling C, or it will be determined using the last part of the ViewPorts classname. +=item layout_args + +This read-only hashref attribute will pass all it's keys as variables to the +layout at render time. They should be accessible from both the layout templates +and the widget, if applicable, through the C<%_> hash. + + $controller->push_viewport(VPName, layout => 'foo', layout_args => { bar => 'bar'}); + $_{bar} #in widget + [% bar %] in template + =item column_order This is generally used by more specialised ViewPorts such as the