1Dist::Zilla::Role::TextUTseemrplCaotnet(r3i)buted Perl DDoicsutm:e:nZtialtliao:n:Role::TextTemplate(3)
2
3
4
6 Dist::Zilla::Role::TextTemplate - something that renders a
7 Text::Template template string
8
10 version 6.031
11
13 Plugins implementing TextTemplate may call their own "fill_in_string"
14 method to render templates using Text::Template.
15
17 This module should work on any version of perl still receiving updates
18 from the Perl 5 Porters. This means it should work on any version of
19 perl released in the last two to three years. (That is, if the most
20 recently released version is v5.40, then this module should work on
21 both v5.40 and v5.38.)
22
23 Although it may work on older versions of perl, no guarantee is made
24 that the minimum required version will not be increased. The version
25 may be increased for any reason, and there is no promise that patches
26 will be accepted to lower the minimum required perl.
27
29 delim
30 This attribute (which can't easily be set!) is a two-element array
31 reference returning the Text::Template delimiters to use. It defaults
32 to "{{" and "}}".
33
35 fill_in_string
36 my $rendered = $plugin->fill_in_string($template, \%stash, \%arg);
37
38 This uses Text::Template to fill in the given template using the
39 variables given in the %stash. The stash becomes the HASH argument to
40 Text::Template, so scalars must be scalar references rather than plain
41 scalars.
42
43 %arg is dereferenced and passed in as extra arguments to
44 Text::Template's "new" routine.
45
47 Ricardo SIGNES 😏 <cpan@semiotic.systems>
48
50 This software is copyright (c) 2023 by Ricardo SIGNES.
51
52 This is free software; you can redistribute it and/or modify it under
53 the same terms as the Perl 5 programming language system itself.
54
55
56
57perl v5.38.0 2023-11-21Dist::Zilla::Role::TextTemplate(3)