Mercurial > pub > Impl
comparison Lib/IMPL/Web/View/TTRegistry.pm @ 309:5e4e7c8fbca1
sync
author | cin |
---|---|
date | Fri, 19 Apr 2013 00:27:51 +0400 |
parents | b5d5793f348e |
children | 72799d1211c5 |
comparison
equal
deleted
inserted
replaced
308:47a09a8dc23a | 309:5e4e7c8fbca1 |
---|---|
3 use mro; | 3 use mro; |
4 | 4 |
5 use IMPL::Const qw(:prop); | 5 use IMPL::Const qw(:prop); |
6 use IMPL::declare { | 6 use IMPL::declare { |
7 require => { | 7 require => { |
8 TTFactory => 'IMPL::Web::View::TTFactory' | 8 TTFactory => 'IMPL::Web::View::TTFactory', |
9 TTControl => '-IMPL::Web::View::TTControl' | |
9 }, | 10 }, |
10 base => [ | 11 base => [ |
11 'IMPL::Object' => undef, | 12 'IMPL::Object' => undef, |
12 'IMPL::Object::Disposable' => undef | 13 'IMPL::Object::Disposable' => undef |
13 ], | 14 ], |
34 } else { | 35 } else { |
35 my $template = $this->loader->template($name) | 36 my $template = $this->loader->template($name) |
36 or die AppException->new("Failed to load a template $name"); | 37 or die AppException->new("Failed to load a template $name"); |
37 | 38 |
38 $factory = TTFactory->new( | 39 $factory = TTFactory->new( |
40 $template->class || TTControl, | |
39 $template, | 41 $template, |
40 $this->context, | 42 $this->context, |
41 $name, | 43 $name, |
42 $this | 44 $this |
43 ); | 45 ); |