Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Dist-Zilla CPAN distribution.

Report information
The Basics
Id: 57921
Status: resolved
Priority: 0/
Queue: Dist-Zilla

People
Owner: Nobody in particular
Requestors: xenoterracide [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Dist::Zilla::Plugin::GenerateFile source template different from output file
Download (untitled) / with headers
text/plain 370b
I would like to be able to add some additional files such as my SubmittingPatches file which is based on git's to my distributions. These are mostly the same but with a few modifications. So what I'd like to be able to do is a have a central template and then specify the variables that go into it in dist.ini. from the documentation this doesn't seem possible atm.
Subject: Re: [rt.cpan.org #57921] Dist::Zilla::Plugin::GenerateFile source template different from output file
Date: Fri, 28 May 2010 07:30:40 -0400
To: Caleb Cushing via RT <bug-Dist-Zilla [...] rt.cpan.org>
From: Ricardo Signes <rjbs [...] cpan.org>
Download (untitled) / with headers
text/plain 542b
* Caleb Cushing via RT <bug-Dist-Zilla@rt.cpan.org> [2010-05-28T01:04:15] Show quoted text
> I would like to be able to add some additional files such as my > SubmittingPatches file which is based on git's to my distributions. These > are mostly the same but with a few modifications. So what I'd like to be > able to do is a have a central template and then specify the variables > that go into it in dist.ini. > > from the documentation this doesn't seem possible atm.
This will be made possible by the current work on global configuration. -- rjbs
Download (untitled) / with headers
text/plain 260b
If you want to do this at 'dzil new' time, you will want to use GatherDir::Template in your profile.ini and put the template files in a directory to be gathered. Any plugin can consume the Role::TextTemplate role to easily generate templated files. -- rjbs


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.