The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Amon2::Plugin::ShareDir - (EXPERIMENTAL) share directory

SYNOPSIS

    # MyApp.pm
    __PACKAGE__->load_plugin('ShareDir');

    # in your app
    my $tmpl_path = catdir(MyApp->share_dir(), 'tmpl');

DESCRIPTION

Use share directory.

STRATEGY

use catdir($c->base_dir, 'share') if not installed to system
use dist_dir($dist_naem) if installed to system