diff options
author | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-11-15 20:16:27 +0000 |
---|---|---|
committer | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-11-15 20:16:27 +0000 |
commit | d8c7a86e24da1f2d809373e8cc15984a6fc407c4 (patch) | |
tree | 7147f6e76ab420a93967a323563237b6e7edd1b5 /lib/Reaction/UI/RenderingContext | |
parent | 9e969ef4928c9792429b2a99ea17351a7aa4f5da (diff) | |
download | reaction-d8c7a86e24da1f2d809373e8cc15984a6fc407c4.tar.gz reaction-d8c7a86e24da1f2d809373e8cc15984a6fc407c4.zip |
widget now passes layoutset to rendering context
Diffstat (limited to 'lib/Reaction/UI/RenderingContext')
-rw-r--r-- | lib/Reaction/UI/RenderingContext/TT.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Reaction/UI/RenderingContext/TT.pm b/lib/Reaction/UI/RenderingContext/TT.pm index 07c700b..a4e3ff8 100644 --- a/lib/Reaction/UI/RenderingContext/TT.pm +++ b/lib/Reaction/UI/RenderingContext/TT.pm @@ -6,15 +6,13 @@ use aliased 'Template::View'; class TT is RenderingContext, which { - has 'tt_view' => ( is => 'ro', required => 1, isa => View); - has 'iter_class' => ( is => 'ro', required => 1, default => sub { 'Reaction::UI::Renderer::TT::Iter'; }, ); implements 'render' => as { - my ($self, $fname, $args) = @_; + my ($self, $lset, $fname, $args) = @_; # foreach non-_ prefixed key in the args # build a subref for this key that passes self so the generator has a @@ -43,7 +41,7 @@ class TT is RenderingContext, which { $tt_args->{content} = $iter; $tt_args->{pos} = sub { $iter->pos }; } - $self->tt_view->include($fname, $tt_args); + $lset->tt_view->include($fname, $tt_args); }; }; |