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
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>
* 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
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