1Dist::Zilla::Plugin::GeUnseerratCeoFnitlrei(b3u)ted PerlDiDsotc:u:mZeinltlaat:i:oPnlugin::GenerateFile(3)
2
3
4
6 Dist::Zilla::Plugin::GenerateFile - build a custom file from only the
7 plugin configuration
8
10 version 4.300002
11
13 In your dist.ini:
14
15 [GenerateFile]
16 filename = todo/master-plan.txt
17 is_template = 1
18 content = # Outlines the plan for world domination by {{$dist->name}}
19 content =
20 content = Item 1: Think of an idea!
21 content = Item 2: ?
22 content = Item 3: Profit!
23
25 This plugin adds a file to the distribution.
26
27 You can specify the content, as a sequence of lines, in your
28 configuration. The specified content might be literal, or might be a
29 Text::Template template.
30
31 Templating of the content
32 If you provide a "is_template" parameter of "1", The content will also
33 be run through Text::Template. The variables $plugin and $dist will be
34 provided, set to the GenerateFile plugin and the Dist::Zilla object
35 respectively.
36
38 filename
39 This attribute names the file you want to generate. It is required.
40
41 content
42 The "content" attribute is an arrayref of lines that will be joined
43 together with newlines to form the file content.
44
45 is_template
46 This attribute is a bool indicating whether or not the content should
47 be treated as a Text::Template template. By default, it is false.
48
50 Ricardo SIGNES <rjbs@cpan.org>
51
53 This software is copyright (c) 2011 by Ricardo SIGNES.
54
55 This is free software; you can redistribute it and/or modify it under
56 the same terms as the Perl 5 programming language system itself.
57
58
59
60perl v5.12.4 2011-09-2D2ist::Zilla::Plugin::GenerateFile(3)