Mercurial > pub > Impl
comparison Lib/IMPL/Web/View/TTView.pm @ 399:753e981782ce
sync
author | cin |
---|---|
date | Mon, 12 May 2014 18:04:40 +0400 |
parents | 6f2a494579cb |
children | 16ff604298c7 |
comparison
equal
deleted
inserted
replaced
398:38cb0b80e88e | 399:753e981782ce |
---|---|
34 | 34 |
35 sub display { | 35 sub display { |
36 my ($this,$model,$template,$args) = @_; | 36 my ($this,$model,$template,$args) = @_; |
37 | 37 |
38 my $context = Context->new($this->options); | 38 my $context = Context->new($this->options); |
39 eval { | |
40 warn $context->process('globals' . '.' . $this->tt_ext, $args); | |
41 }; | |
39 my $layout = delete $args->{layout} || $this->layout; | 42 my $layout = delete $args->{layout} || $this->layout; |
40 | 43 |
41 return $context->invoke_environment( | 44 return $context->invoke_environment( |
42 sub { | 45 sub { |
43 my $ctx = shift; | 46 my $ctx = shift; |