mirror of https://github.com/sipwise/ngcpcfg.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.3 KiB
60 lines
1.3 KiB
package NGCP::Template 1.000;
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use List::Util qw(any);
|
|
|
|
sub new
|
|
{
|
|
my ($this, $config) = @_;
|
|
my $class = ref $this || $this;
|
|
|
|
my $self = {
|
|
config => $config,
|
|
};
|
|
|
|
return bless $self, $class;
|
|
}
|
|
|
|
1;
|
|
|
|
__END__
|
|
|
|
=encoding UTF-8
|
|
|
|
=head1 NAME
|
|
|
|
NGCP::Template - NGCP module for the Template::Tolkit framework
|
|
|
|
=head1 VERSION
|
|
|
|
Version 1.000
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
This module provides the methods for the ngcp object that can be used within
|
|
the NGCP templates. This makes it easier to use instead of the old library
|
|
of code executed via the C<PROCESS> directive.
|
|
|
|
=head1 AUTHOR
|
|
|
|
Guillem Jover, C<< <gjover@sipwise.com> >>
|
|
|
|
=head1 LICENSE
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
.
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
.
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
=cut
|