Mercurial > pub > Impl
diff Lib/IMPL/Web/View/TTLoader.pm @ 287:2d253e6e4a88
*TTView refactoring
author | cin |
---|---|
date | Tue, 19 Feb 2013 03:05:10 +0400 |
parents | 546957c50a36 |
children | 85572f512abc |
line wrap: on
line diff
--- a/Lib/IMPL/Web/View/TTLoader.pm Mon Feb 18 14:46:06 2013 +0400 +++ b/Lib/IMPL/Web/View/TTLoader.pm Tue Feb 19 03:05:10 2013 +0400 @@ -77,10 +77,11 @@ my $opts = { %{ $this->options } }; - $opts->{STASH} = $this->context->stash->clone(); - $opts->{LOAD_TEMPLATES} = $this->provider; + $this->context->localise(); + my $ctx = Template::Context->new( %{$this->context} ); + $this->context->delocalise(); - return TTDocument->new( $tt, $opts, $this, $vars ); + return TTDocument->new( $tt, $ctx, $this, $vars ); } sub template {