perlancar > Dist-Zilla-Plugin-Extras > Dist::Zilla::Plugin::Extras

Download:
Dist-Zilla-Plugin-Extras-0.03.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Dist::Zilla::Plugin::Extras - Put extra parameters in dist.ini

VERSION ^

This document describes version 0.03 of Dist::Zilla::Plugin::Extras (from Perl distribution Dist-Zilla-Plugin-Extras), released on 2015-06-14.

SYNOPSIS ^

In your dist.ini:

  [Extras]
  foo = 1
  bar = 2

  [Extras / Baz]
  qux = 1
  quux = 2

DESCRIPTION ^

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.

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.:

 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).

ATTRIBUTES ^

params => hash

SEE ALSO ^

Dist::Zilla

HOMEPAGE ^

Please visit the project's homepage at https://metacpan.org/release/Dist-Zilla-Plugin-Extras.

SOURCE ^

Source repository is at https://github.com/perlancar/perl-Dist-Zilla-Plugin-Extras.

BUGS ^

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.

AUTHOR ^

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: