Dist::Zilla::Plugin::Extras - Put extra parameters in dist.ini
This document describes version 0.03 of Dist::Zilla::Plugin::Extras (from Perl distribution Dist-Zilla-Plugin-Extras), released on 2015-06-14.
In your dist.ini:
[Extras] foo = 1 bar = 2 [Extras / Baz] qux = 1 quux = 2
This plugin lets you specify extra parameters in your dist.ini under the [Extras] section. Other than that it does nothing. It basically serves as "bags" to put parameters in.
[Extras]
One use-case of this is to put template variables in your dist.ini, e.g.:
[Extras] name1 = value1 name2 = value2
The parameters are available for other plugins through $zilla (Dist::Zilla object), e.g.:
$zilla
my $extras_plugin = grep { $_->plugin_name eq 'Extras' } $zilla->plugins; my $name1 = $extras_plugin->params->{name1}; # -> "value1"
Another use-case of this is to put stuffs to be processed by other software aside from Dist::Zilla (e.g. see App::LintPrereqs).
Dist::Zilla
Please visit the project's homepage at https://metacpan.org/release/Dist-Zilla-Plugin-Extras.
Source repository is at https://github.com/perlancar/perl-Dist-Zilla-Plugin-Extras.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-Extras
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2015 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dist::Zilla::Plugin::Extras, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::Extras
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::Extras
For more information on module installation, please visit the detailed CPAN module installation guide.