diff Lib/IMPL/Web/View/TTFactory.pm @ 291:5d14baa35790

*TTView: fixed template selectors mechanism
author cin
date Thu, 21 Feb 2013 03:44:02 +0400
parents 7b0dad6117d5
children 86ff93b34f2a
line wrap: on
line diff
--- a/Lib/IMPL/Web/View/TTFactory.pm	Wed Feb 20 17:24:57 2013 +0400
+++ b/Lib/IMPL/Web/View/TTFactory.pm	Thu Feb 21 03:44:02 2013 +0400
@@ -45,6 +45,11 @@
 sub MergeParameters {
     my ($this,$name,$refProps) = @_;
     
+    if (ref $name) {
+        $refProps = $name;
+        $name = (ref $refProps eq 'HASH' and ($refProps->{name} || $refProps->{id})) || '*anonymous*';
+    }
+    
     my $base = $this->base;
     
     $this->context->localise();