Amon2-Plugin-ShareDir
view release on metacpan or search on metacpan
# =========================================================================
# THIS FILE IS AUTOMATICALLY GENERATED BY MINILLA.
# DO NOT EDIT DIRECTLY.
# =========================================================================
use 5.008_001;
use strict;
use warnings;
use utf8;
use Module::Build;
use File::Basename;
use File::Spec;
my %args = (
license => 'perl',
dynamic_config => 0,
configure_requires => {
lib/Amon2/Plugin/ShareDir.pm view on Meta::CPAN
my $d2 = File::ShareDir::dist_dir($dist);
return $d2 if -d $d2;
Carp::croak "Cannot find assets path($d1, $d2).";
}->();
}
1;
__END__
=encoding utf8
=head1 NAME
Amon2::Plugin::ShareDir - (EXPERIMENTAL) share directory
=head1 SYNOPSIS
# MyApp.pm
__PACKAGE__->load_plugin('ShareDir');
t/600_plugins/020_share_dir.t view on Meta::CPAN
use strict;
use warnings;
use utf8;
use Test::More;
use File::ShareDir;
use File::Basename qw(dirname);
our $BASE_DIR = dirname(__FILE__);
{
package MyApp;
use parent qw/Amon2/;
sub base_dir { $::BASE_DIR }
( run in 1.071 second using v1.01-cache-2.11-cpan-49f99fa48dc )