Mercurial > pub > Impl
comparison Lib/IMPL/Web/View/TTLoader.pm @ 285:546957c50a36
*IMPL::Web::Handler::TTView Reworked template selection mechanism
*IMPL::Web::Application: refactoring
-Removed obsolete IMPL::Text modules
author | cin |
---|---|
date | Mon, 18 Feb 2013 02:55:59 +0400 |
parents | 6b6d4b2275a1 |
children | 2d253e6e4a88 |
comparison
equal
deleted
inserted
replaced
284:f2a6bc5f3184 | 285:546957c50a36 |
---|---|
93 $name = $this->_appendExt($name); | 93 $name = $this->_appendExt($name); |
94 | 94 |
95 my ($tt,$error) = $this->provider->fetch($name); | 95 my ($tt,$error) = $this->provider->fetch($name); |
96 | 96 |
97 if (defined $error and $error == STATUS_DECLINED) { | 97 if (defined $error and $error == STATUS_DECLINED) { |
98 die KeyNotFoundException->($name); | 98 die KeyNotFoundException->new($name); |
99 } elsif (defined $error and $error == STATUS_ERROR) { | 99 } elsif (defined $error and $error == STATUS_ERROR) { |
100 die Exception->new("Failed to load a template", $name, $tt); | 100 die Exception->new("Failed to load a template", $name, $tt); |
101 } | 101 } |
102 | 102 |
103 return $tt; | 103 return $tt; |