1Alien::Build::InterpolaUtsee(r3)Contributed Perl DocumenAtlaiteino:n:Build::Interpolate(3)
2
3
4

NAME

6       Alien::Build::Interpolate - Advanced interpolation engine for Alien
7       builds
8

VERSION

10       version 2.80
11

CONSTRUCTOR

13   new
14        my $intr = Alien::Build::Interpolate->new;
15
16   add_helper
17        $intr->add_helper($name => $code);
18        $intr->add_helper($name => $code, %requirements);
19
20   replace_helper
21        $intr->replace_helper($name => $code);
22        $intr->replace_helper($name => $code, %requirements);
23
24   has_helper
25        my $coderef = $intr->has_helper($name);
26
27       Used to discover if a helper exists with the given name.  Returns the
28       code reference.
29
30   execute_helper
31        my $value = $intr->execute_helper($name);
32
33       This evaluates the given helper and returns the result.
34
35   interpolate
36        my $string = $intr->interpolate($template, $build);
37        my $string = $intr->interpolate($template);
38
39       This takes a template and fills in the appropriate values of any
40       helpers used in the template.
41
42       [version 2.58]
43
44       If you pass in an Alien::Build instance as the second argument, you can
45       use properties as well as helpers in the template.  Example:
46
47        my $patch = $intr->template("%{.install.patch}/foo-%{.runtime.version}.patch", $build);
48
49   requires
50        my %requires = $intr->requires($template);
51
52       This returns a hash of modules required in order to execute the given
53       template.  The keys are the module names and the values are the
54       versions.  Version will be set to 0 if any version is sufficient.
55
56   clone
57        my $intr2 = $intr->clone;
58
59       This creates a clone of the interpolator.
60

AUTHOR

62       Author: Graham Ollis <plicease@cpan.org>
63
64       Contributors:
65
66       Diab Jerius (DJERIUS)
67
68       Roy Storey (KIWIROY)
69
70       Ilya Pavlov
71
72       David Mertens (run4flat)
73
74       Mark Nunberg (mordy, mnunberg)
75
76       Christian Walde (Mithaldu)
77
78       Brian Wightman (MidLifeXis)
79
80       Zaki Mughal (zmughal)
81
82       mohawk (mohawk2, ETJ)
83
84       Vikas N Kumar (vikasnkumar)
85
86       Flavio Poletti (polettix)
87
88       Salvador Fandiño (salva)
89
90       Gianni Ceccarelli (dakkar)
91
92       Pavel Shaydo (zwon, trinitum)
93
94       Kang-min Liu (劉康民, gugod)
95
96       Nicholas Shipp (nshp)
97
98       Juan Julián Merelo Guervós (JJ)
99
100       Joel Berger (JBERGER)
101
102       Petr Písař (ppisar)
103
104       Lance Wicks (LANCEW)
105
106       Ahmad Fatoum (a3f, ATHREEF)
107
108       José Joaquín Atria (JJATRIA)
109
110       Duke Leto (LETO)
111
112       Shoichi Kaji (SKAJI)
113
114       Shawn Laffan (SLAFFAN)
115
116       Paul Evans (leonerd, PEVANS)
117
118       Håkon Hægland (hakonhagland, HAKONH)
119
120       nick nauwelaerts (INPHOBIA)
121
122       Florian Weimer
123
125       This software is copyright (c) 2011-2022 by Graham Ollis.
126
127       This is free software; you can redistribute it and/or modify it under
128       the same terms as the Perl 5 programming language system itself.
129
130
131
132perl v5.36.1                      2023-05-15      Alien::Build::Interpolate(3)
Impressum