Dist::Zilla::Plugin::ShareEmbed - Embed share files to .pm file
In your dist.ini:
[ShareEmbed]
Then
> dzil build > find lib -type f lib/Your/Module.pm lib/Your/Module/Share.pm <=== Created!
Dist::Zilla::Plugin::ShareEmbed embeds share files to lib/Your/Module/Share.pm, so that you can use share files like:
lib/Your/Module/Share.pm
use Your::Module::Share; # returns content of share/foo/bar.txt my $bar = Your::Module::Share->file("foo/bar.txt"); # returns all contens of files in share directory my $all = Your::Module::Share->file;
This plugin may be useful when you intend to fatpack your modules.
Shoichi Kaji <skaji@cpan.org>
Copyright 2016 Shoichi Kaji <skaji@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Dist::Zilla::Plugin::ShareEmbed, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::ShareEmbed
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::ShareEmbed
For more information on module installation, please visit the detailed CPAN module installation guide.