diff Lib/IMPL/Web/View/TTRegistry.pm @ 309:5e4e7c8fbca1

sync
author cin
date Fri, 19 Apr 2013 00:27:51 +0400
parents b5d5793f348e
children 72799d1211c5
line wrap: on
line diff
--- a/Lib/IMPL/Web/View/TTRegistry.pm	Thu Apr 18 20:06:05 2013 +0400
+++ b/Lib/IMPL/Web/View/TTRegistry.pm	Fri Apr 19 00:27:51 2013 +0400
@@ -5,7 +5,8 @@
 use IMPL::Const qw(:prop);
 use IMPL::declare {
     require => {
-        TTFactory => 'IMPL::Web::View::TTFactory'        
+        TTFactory => 'IMPL::Web::View::TTFactory',
+        TTControl => '-IMPL::Web::View::TTControl'
     },
     base => [
         'IMPL::Object' => undef,
@@ -36,6 +37,7 @@
             or die AppException->new("Failed to load a template $name");
          
         $factory = TTFactory->new(
+            $template->class || TTControl,
             $template,
             $this->context,
             $name,