1Dist::Zilla::Plugin::GaUtsheerrDCiorn:t:rTiebmuptDleiadstteP:(e:3rZ)lilDloac:u:mPelnutgaitni:o:nGatherDir::Template(3)
2
3
4

NAME

6       Dist::Zilla::Plugin::GatherDir::Template - gather all the files in a
7       directory and use them as templates
8

VERSION

10       version 6.012
11

DESCRIPTION

13       This is a subclass of the GatherDir plugin.  It works just like its
14       parent class, except that each gathered file is processed through
15       Text::Template.
16
17       The variables $plugin and $dist will be provided to the template, set
18       to the GatherDir::Template plugin and the Dist::Zilla object,
19       respectively.
20
21       It is meant to be used when minting dists with "dzil new", but could be
22       used in building existing dists, too.
23

ATTRIBUTES

25   rename
26       Use this to rename files while they are being gathered.  This is a list
27       of key/value pairs, specified thus:
28
29           [GatherDir::Template]
30           rename.DISTNAME = $dist->name =~ s/...//r
31           rename.DISTVER  = $dist->version
32
33       This example will replace the tokens "DISTNAME" and "DISTVER" with the
34       expressions they are associated with. These expressions will be treated
35       as though they were miniature Text::Template sections, and hence will
36       receive the same variables that the file itself receives, i.e. $dist
37       and $plugin.
38

AUTHOR

40       Ricardo SIGNES 😏 <rjbs@cpan.org>
41
43       This software is copyright (c) 2018 by Ricardo SIGNES.
44
45       This is free software; you can redistribute it and/or modify it under
46       the same terms as the Perl 5 programming language system itself.
47
48
49
50perl v5.28.1                      20D1i8s-t0:4:-Z2i1lla::Plugin::GatherDir::Template(3)
Impressum