Fixed email address to gmail address
[p5sagit/Excel-Template.git] / lib / Excel / Template / Element / Var.pm
CommitLineData
d0eafc11 1package Excel::Template::Element::Var;
2
3use strict;
4
5BEGIN {
6 use vars qw(@ISA);
7 @ISA = qw(Excel::Template::Element);
8
9 use Excel::Template::Element;
10}
11
12sub resolve { ($_[1])->param($_[1]->resolve($_[0], 'NAME')) }
13
141;
15__END__
16
17=head1 NAME
18
19Excel::Template::Element::Var
20
21=head1 PURPOSE
22
23To provide parameter substitution.
24
25=head1 NODE NAME
26
27VAR
28
29=head1 INHERITANCE
30
31Excel::Template::Element
32
33=head1 ATTRIBUTES
34
35=over 4
36
37=item * NAME
38
39This is the name of the parameter to substitute here.
40
41=back 4
42
43=head1 CHILDREN
44
45None
46
47=head1 EFFECTS
48
49None
50
51=head1 DEPENDENCIES
52
53This will only be used within CELL tags.
54
55=head1 USAGE
56
57This is used exactly like HTML::Template's TMPL_VAR. There is one exception -
58since you can have variable names inside the parameters, you can do something
59like:
60
61 <loop name="LOOPY">
62 <var name="$SomeParam"/>
63 </loop>
64
65Where the actual name to be substituted is, itself, a parameter.
66
67=head1 AUTHOR
68
c09684ff 69Rob Kinyon (rob.kinyon@gmail.com)
d0eafc11 70
71=head1 SEE ALSO
72
73CELL
74
75=cut