comparison Lib/IMPL/Web/View/TTLoader.pm @ 311:d3b5a67ad2e8

sync
author cin
date Mon, 22 Apr 2013 03:42:53 +0400
parents 0a9d51cf6dfd
children 86336d451b82
comparison
equal deleted inserted replaced
310:0a9d51cf6dfd 311:d3b5a67ad2e8
83 83
84 $this->context->localise(); 84 $this->context->localise();
85 my $ctx = _clone_context($this->context); 85 my $ctx = _clone_context($this->context);
86 $this->context->delocalise(); 86 $this->context->delocalise();
87 87
88 $ctx->stash->update($vars);
89
88 my $registry = TTRegistry->new($this, $ctx); 90 my $registry = TTRegistry->new($this, $ctx);
89 91
90 my $factory = TTFactory->new($tt->class || TTDocument, $tt, $ctx, $name, $registry); 92 my $factory = TTFactory->new($tt->class || TTDocument, $tt, $ctx, $name, $registry);
91 93
92 $vars->{registry} = $registry; 94 $vars->{registry} = $registry;
93 $vars->{layoutBase} = $this->layoutBase; 95 $vars->{layoutBase} = $this->layoutBase;
94 96
95 return $factory->new( $vars ); 97 return $factory->new( $vars );
96 } 98 }
97 99
98 100
99 sub template { 101 sub template {
100 my ($this,$name) = @_; 102 my ($this,$name) = @_;