1Dist::Zilla::Plugin::TeUmspelratCeoMnotdruilbeu(t3e)d PeDrilstD:o:cZuimlelnat:a:tPiloungin::TemplateModule(3)
2
3
4

NAME

6       Dist::Zilla::Plugin::TemplateModule - a simple module-from-template
7       plugin
8

VERSION

10       version 6.023
11

DESCRIPTION

13       This is a ModuleMaker used for creating new Perl modules files when
14       minting a new dist with "dzil new".  It uses Text::Template (via
15       Dist::Zilla::Role::TextTemplate) to render a template into a Perl
16       module.  The template is given two variables for use in rendering:
17       $name, the module name; and $dist, the Dist::Zilla object.  The module
18       is always created as a file under ./lib.
19
20       By default, the template looks something like this:
21
22         use strict;
23         use warnings;
24         package {{ $name }};
25
26         1;
27

PERL VERSION

29       This module should work on any version of perl still receiving updates
30       from the Perl 5 Porters.  This means it should work on any version of
31       perl released in the last two to three years.  (That is, if the most
32       recently released version is v5.40, then this module should work on
33       both v5.40 and v5.38.)
34
35       Although it may work on older versions of perl, no guarantee is made
36       that the minimum required version will not be increased.  The version
37       may be increased for any reason, and there is no promise that patches
38       will be accepted to lower the minimum required perl.
39

ATTRIBUTES

41   template
42       The "template" parameter may be given to the plugin to provide a
43       different filename, absolute or relative to the build/profile
44       directory.
45
46       If this parameter is not specified, this module will use the
47       boilerplate module template included in this module.
48

MINTING CONFIGURATION

50       This module is part of the standard configuration of the default
51       Dist::Zilla Minting Profile, and all profiles that don't set a custom
52       ':DefaultModuleMaker' so you don't need to normally do anything to
53       configure it.
54
55         dzil new Some::Module
56         # creates ./Some-Module/*
57         # creates ./Some-Module/lib/Some/Module.pm
58
59       However, for those who wish to configure this ( or any subclasses )
60       this is presently required:
61
62         [TemplateModule / :DefaultModuleMaker]
63         ; template  = SomeFile.pm
64

AUTHOR

66       Ricardo SIGNES 😏 <rjbs@semiotic.systems>
67
69       This software is copyright (c) 2021 by Ricardo SIGNES.
70
71       This is free software; you can redistribute it and/or modify it under
72       the same terms as the Perl 5 programming language system itself.
73
74
75
76perl v5.34.0                      2021-07D-i2s2t::Zilla::Plugin::TemplateModule(3)
Impressum