Unix and Linux Discussions Tagged with content |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
22,687 |
What is on Your Mind? |
|
|
|
2 |
5,344 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
4,993 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,914 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
5,598 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
2,284 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,896 |
Shell Programming and Scripting |
|
|
|
9 |
5,978 |
Shell Programming and Scripting |
|
|
|
3 |
1,587 |
Shell Programming and Scripting |
|
|
|
1 |
2,079 |
Programming |
|
|
|
1 |
2,333 |
Shell Programming and Scripting |
|
|
|
3 |
2,302 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,786 |
Shell Programming and Scripting |
|
|
|
18 |
6,476 |
Shell Programming and Scripting |
|
|
|
0 |
1,076 |
Software Releases - RSS News |
|
|
|
3 |
2,046 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
2,102 |
OS X Support RSS |
|
|
|
0 |
980 |
Software Releases - RSS News |
|
|
|
0 |
2,002 |
OS X Support RSS |
|
|
|
0 |
8,264 |
OS X Support RSS |
|
|
|
0 |
863 |
Software Releases - RSS News |
|
|
|
2 |
2,244 |
Shell Programming and Scripting |
|
|
|
1 |
3,017 |
Shell Programming and Scripting |
|
|
|
0 |
992 |
Software Releases - RSS News |
|
|
|
0 |
1,753 |
OS X Support RSS |
|
|
|
0 |
1,841 |
OS X Support RSS |
|
|
|
0 |
2,472 |
OS X Support RSS |
|
|
|
0 |
1,487 |
OS X Support RSS |
|
|
|
6 |
2,492 |
Shell Programming and Scripting |
|
|
|
3 |
1,938 |
Shell Programming and Scripting |
|
|
|
0 |
3,184 |
Programming |
|
|
|
0 |
903 |
Software Releases - RSS News |
|
|
|
0 |
2,645 |
Complex Event Processing RSS News |
|
|
|
4 |
16,765 |
Shell Programming and Scripting |
|
|
|
6 |
2,429 |
Shell Programming and Scripting |
|
|
|
0 |
850 |
Software Releases - RSS News |
|
|
|
30 |
11,109 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
2,741 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,524 |
Shell Programming and Scripting |
|
|
|
0 |
990 |
Software Releases - RSS News |
Dist::Zilla::Plugin::GenerateFile(3pm) User Contributed Perl Documentation Dist::Zilla::Plugin::GenerateFile(3pm)
NAME
Dist::Zilla::Plugin::GenerateFile - build a custom file from only the plugin configuration
VERSION
version 4.300020
SYNOPSIS
In your dist.ini:
[GenerateFile]
filename = todo/master-plan.txt
is_template = 1
content = # Outlines the plan for world domination by {{$dist->name}}
content =
content = Item 1: Think of an idea!
content = Item 2: ?
content = Item 3: Profit!
DESCRIPTION
This plugin adds a file to the distribution.
You can specify the content, as a sequence of lines, in your configuration. The specified content might be literal, or might be a
Text::Template template.
Templating of the content
If you provide a "is_template" parameter of "1", The content will also be run through Text::Template. The variables $plugin and $dist will
be provided, set to the GenerateFile plugin and the Dist::Zilla object respectively.
ATTRIBUTES
filename
This attribute names the file you want to generate. It is required.
content
The "content" attribute is an arrayref of lines that will be joined together with newlines to form the file content.
is_template
This attribute is a bool indicating whether or not the content should be treated as a Text::Template template. By default, it is false.
AUTHOR
Ricardo SIGNES <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 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.14.2 2012-06-21 Dist::Zilla::Plugin::GenerateFile(3pm)