comparison Lib/IMPL/Web/View/TTLoader.pm @ 205:891c04080658

IMPL::Web::View fixed template selection, release candidate
author sergey
date Thu, 03 May 2012 01:00:02 +0400
parents a705e848dcc7
children c8fe3f84feba
comparison
equal deleted inserted replaced
204:d63f9a92d6d4 205:891c04080658
83 sub template { 83 sub template {
84 my ($this,$name) = @_; 84 my ($this,$name) = @_;
85 85
86 $name =~ s/^\s+|\s+$//g; 86 $name =~ s/^\s+|\s+$//g;
87 87
88 die new IMPL::ArgumentException("A valid template name is required") unless length $name; 88 die new IMPL::InvalidArgumentException("A valid template name is required") unless length $name;
89 89
90 $name = $this->_appendExt($name); 90 $name = $this->_appendExt($name);
91 91
92 my ($tt,$error) = $this->provider->fetch($name); 92 my ($tt,$error) = $this->provider->fetch($name);
93 93