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

ATTRIBUTES

29   template
30       The "template" parameter may be given to the plugin to provide a
31       different filename, absolute or relative to the build/profile
32       directory.
33
34       If this parameter is not specified, this module will use the
35       boilerplate module template included in this module.
36

MINTING CONFIGURATION

38       This module is part of the standard configuration of the default
39       Dist::Zilla Minting Profile, and all profiles that don't set a custom
40       ':DefaultModuleMaker' so you don't need to normally do anything to
41       configure it.
42
43         dzil new Some::Module
44         # creates ./Some-Module/*
45         # creates ./Some-Module/lib/Some/Module.pm
46
47       However, for those who wish to configure this ( or any subclasses )
48       this is presently required:
49
50         [TemplateModule / :DefaultModuleMaker]
51         ; template  = SomeFile.pm
52

AUTHOR

54       Ricardo SIGNES 😏 <rjbs@cpan.org>
55
57       This software is copyright (c) 2018 by Ricardo SIGNES.
58
59       This is free software; you can redistribute it and/or modify it under
60       the same terms as the Perl 5 programming language system itself.
61
62
63
64perl v5.28.1                      2018-04D-i2s1t::Zilla::Plugin::TemplateModule(3)
Impressum