Dist::Zilla::Plugin::Substitute - Substitutions for files in dzil
[Substitute] finder = :ExecFiles code = s/Foo/Bar/g ; alternatively [Substitute] file = lib/Buz.pm code = s/Buz/Quz/g filename_code = s/Buz/Quz/
This module performs substitutions on files in Dist::Zilla.
An arrayref of lines of code. This is converted into a sub that's called for each line, with
$_ containing that line. Alternatively, it may be a subref if passed from for example a pluginbundle. Mandatory.
content_code but the resulting sub is called for the filename. Optional.
The finders to use for the substitutions. Defaults to
:InstallModules, :ExecFiles. May also be spelled as
finder in the dist.ini.
The files to substitute. It defaults to the files in
finders. May also be spelled as
file in the dist.ini.
# vim: ts=2 sts=2 sw=2 noet :
Leon Timmermans <email@example.com>
This software is copyright (c) 2013 by Leon Timmermans.