Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Dist::Zilla::Plugin::GUserrContributedtPerlla::Plugin::GatherDir::Template(3)

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

VERSION
       version 6.020

DESCRIPTION
       This is a subclass of the GatherDir plugin.  It works just like its
       parent class, except that each gathered file is processed through
       Text::Template.

       The variables $plugin and $dist will be provided	to the template, set
       to the GatherDir::Template plugin and the Dist::Zilla object,
       respectively.

       It is meant to be used when minting dists with "dzil new", but could be
       used in building	existing dists,	too.

PERL VERSION SUPPORT
       This module has the same	support	period as perl itself:	it supports
       the two most recent versions of perl.  (That is,	if the most recently
       released	version	is v5.40, then this module should work on both v5.40
       and v5.38.)

       Although	it may work on older versions of perl, no guarantee is made
       that the	minimum	required version will not be increased.	 The version
       may be increased	for any	reason,	and there is no	promise	that patches
       will be accepted	to lower the minimum required perl.

ATTRIBUTES
   rename
       Use this	to rename files	while they are being gathered.	This is	a list
       of key/value pairs, specified thus:

	   [GatherDir::Template]
	   rename.DISTNAME = $dist->name =~ s/...//r
	   rename.DISTVER  = $dist->version

       This example will replace the tokens "DISTNAME" and "DISTVER" with the
       expressions they	are associated with. These expressions will be treated
       as though they were miniature Text::Template sections, and hence	will
       receive the same	variables that the file	itself receives, i.e. $dist
       and $plugin.

AUTHOR
       Ricardo SIGNES dh <rjbs@semiotic.systems>

COPYRIGHT AND LICENSE
       This software is	copyright (c) 2021 by Ricardo SIGNES.

       This is free software; you can redistribute it and/or modify it under
       the same	terms as the Perl 5 programming	language system	itself.

perl v5.32.1			  2Dist::Zilla::Plugin::GatherDir::Template(3)

NAME | VERSION | DESCRIPTION | PERL VERSION SUPPORT | ATTRIBUTES | AUTHOR | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Dist::Zilla::Plugin::GatherDir::Template&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help