NAME

Pod::Weaver::Plugin::Run - Write Pod::Weaver::Plugin directly in weaver.ini

VERSION

This document describes version 0.001 of Pod::Weaver::Plugin::Run (from Perl distribution Pod-Weaver-Plugin-Run), released on 2016-10-14.

SYNOPSIS

In your weaver.ini:

[-Run]
;;; each of these options can be specified multiple times
;include_module = Foo
;include_module_pattern = ^Bar.+$
;exclude_module = Baz
;exclude_module_pattern = ^Qux
;include_file = lib/Quux.pm
;include_file_pattern = Corge\d+
;exclude_file = lib/Grault.pm
;exclude_file_pattern = Garply\d+

code = sub { my ($self, $document, $input) = @_; ... }
;code = ...

DESCRIPTION

This plugin will compile the code specified in weaver.ini and execute it. It effectively lets you write weave_section() directly in weaver.ini.

CONFIGURATION

include_module => str+

include_module_pattern => str+

exclude_module => str+

exclude_module_pattern => str+

include_file => str+

include_file_pattern => str+

exclude_file => str+

exclude_file_pattern => str+

code => str+

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Pod-Weaver-Plugin-Run.

SOURCE

Source repository is at https://github.com/perlancar/perl-Pod-Weaver-Plugin-Run.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Pod-Weaver-Plugin-Run

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.

SEE ALSO

Pod::Weaver::Plugin::Eval, an older incarnation of this module.

Dist::Zilla::Plugin::Hook lets you do something similar for Dist::Zilla: it lets you write dzil plugins directly in dist.ini.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 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.