comparison Lib/IMPL/Config/Include.pm @ 204:d63f9a92d6d4

+IMPL::Config::Include - simple way to include external config *IMPL::Web::Handler::TTView - finished template selecting mechanism (not tested)
author sergey
date Wed, 02 May 2012 17:42:47 +0400
parents
children
comparison
equal deleted inserted replaced
203:68a59c3358ff 204:d63f9a92d6d4
1 package IMPL::Config::Include;
2 use strict;
3 use warnings;
4 use IMPL::require {
5 Conf => 'IMPL::Config',
6 Exception => 'IMPL::Exception'
7 };
8
9
10 sub restore {
11 my ($self,$data) = @_;
12
13 die Exception->new("A file name is required") if ref $data || not $data;
14
15 return Conf->spawn($data);
16 }
17
18 1;