Config-TT2

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

my $builder = Module::Build->new(
    module_name       => 'Config::TT2',
    license           => 'perl',
    dist_author       => q{Karl Gaissmaier <gaissmai@cpan.org>},
    dist_version_from => 'lib/Config/TT2.pm',
    create_readme     => 1,
    build_requires    => { 'Test::More' => 0, },
    requires          => {
        'Template'  => '2.21',
        'Carp'      => 0,
        'Try::Tiny' => 0,
    },
    add_to_cleanup     => ['Config-TT2-*'],
    create_makefile_pl => 'traditional',
);

$builder->create_build_script();

META.yml  view on Meta::CPAN

  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: 1.4
name: Config-TT2
provides:
  Config::TT2:
    file: lib/Config/TT2.pm
    version: 0.53
requires:
  Carp: 0
  Template: 2.21
  Try::Tiny: 0
resources:
  license: http://dev.perl.org/licenses/
version: 0.53

Makefile.PL  view on Meta::CPAN

# Note: this file was auto-generated by Module::Build::Compat version 0.3607
use ExtUtils::MakeMaker;
WriteMakefile
(
          'NAME' => 'Config::TT2',
          'VERSION_FROM' => 'lib/Config/TT2.pm',
          'PREREQ_PM' => {
                           'Carp' => 0,
                           'Template' => '2.21',
                           'Test::More' => 0,
                           'Try::Tiny' => 0
                         },
          'INSTALLDIRS' => 'site',
          'EXE_FILES' => [],
          'PL_FILES' => {}
        )
;

lib/Config/TT2.pm  view on Meta::CPAN

use strict;
use warnings;

package Config::TT2;

use Template;
use Try::Tiny;
use Carp qw(croak);

our $VERSION = '0.53';

=head1 NAME

Config::TT2 - Reading configuration files with the Template-Toolkit parser.

=head1 ABSTRACT

t/01-new.t  view on Meta::CPAN

#!perl -T

use Test::More;
use Try::Tiny;

use_ok('Config::TT2');

foreach my $opt (
    qw/
    PRE_PROCESS
    PROCESS
    POST_PROCESS
    WRAPPER
    AUTO_RESET

t/07-include-path.t  view on Meta::CPAN

#!perl -T

use Test::More;
use Try::Tiny;

use_ok('Config::TT2');

my $params = {
    INCLUDE_PATH => './t/cfg/',
    ABSOLUTE     => 0,
    RELATIVE     => 0,
};

my ( $ctt2, $error );



( run in 0.843 second using v1.01-cache-2.11-cpan-05444aca049 )