Mercurial > pub > Impl
diff Lib/IMPL/Web/View/TTDocument.pm @ 300:bf3af33b9003
sync
author | cin |
---|---|
date | Fri, 22 Mar 2013 01:05:11 +0400 |
parents | 78f767765706 |
children | aeeb57a12046 |
line wrap: on
line diff
--- a/Lib/IMPL/Web/View/TTDocument.pm Thu Mar 21 16:00:09 2013 +0400 +++ b/Lib/IMPL/Web/View/TTDocument.pm Fri Mar 22 01:05:11 2013 +0400 @@ -17,7 +17,7 @@ 'IMPL::Web::View::TTControl' => sub { my ($template,$ctx) = @_; $ctx ||= Template::Context->new(); - return 'document', $template, $ctx; # context + return $template, $ctx; # context } ], props => [ @@ -29,15 +29,11 @@ sub CTOR { my ($this,$template,$ctx,$loader,$vars) = @_; - $this->controls({}); $this->loader($loader) if $loader; - $this->layout( $template->layout ) unless $this->layout; $this->context->stash->update($vars) if ref $vars eq 'HASH'; - - $this->InitInstance(); } sub Render {