Is there any way to have a user defined parameter in a file and then have the dist.ini
set the value for the parameter. For example, a file might contain {{$THE_ANSWER}}
and the dist.ini
file would provide a value like THE_ANSWER = 42
? I'm pretty new to using dist::zilla
to work with perl distributions, and I'm having problems understanding how it treats files as templates. There seem to be only a couple of hard-codeed parameters, varying by plugin, that can be used for any file. One such parameter is the {{$NEXT}} variable made available by [NextRelease]
in the Changes
file.
I read through the tutorials and searched the modules on CPAN and can't figure out if this is even possible. It is not an acceptable work-around to use the [GenerateFile]
plugin to put the whole file in the dist.ini
file. Besides a lack of flexibility and just plain ugliness, it doesn't seem possible to add lines with leading white-space that way.