Fixed email address to gmail address
[p5sagit/Excel-Template.git] / lib / Excel / Template / Container / Worksheet.pm
CommitLineData
d0eafc11 1package Excel::Template::Container::Worksheet;
2
3use strict;
4
5BEGIN {
6 use vars qw(@ISA);
7 @ISA = qw(Excel::Template::Container);
8
9 use Excel::Template::Container;
10}
11
12sub render
13{
14 my $self = shift;
15 my ($context) = @_;
16
17 $context->new_worksheet($self->{NAME});
18
19 return $self->SUPER::render($context);
20}
21
221;
23__END__
24
25=head1 NAME
26
27Excel::Template::Container::Worksheet - Excel::Template::Container::Worksheet
28
29=head1 PURPOSE
30
31To provide a new worksheet.
32
33=head1 NODE NAME
34
35WORKSHEET
36
37=head1 INHERITANCE
38
39Excel::Template::Container
40
41=head1 ATTRIBUTES
42
43=over 4
44
45=item * NAME
46
47This is the name of the worksheet to be added.
48
49=back 4
50
51=head1 CHILDREN
52
53None
54
55=head1 EFFECTS
56
57None
58
59=head1 DEPENDENCIES
60
61None
62
63=head1 USAGE
64
65 <worksheet name="My Taxes">
66 ... Children here
67 </worksheet>
68
69In the above example, the children will be executed in the context of the
70"My Taxes" worksheet.
71
72=head1 AUTHOR
73
c09684ff 74Rob Kinyon (rob.kinyon@gmail.com)
d0eafc11 75
76=head1 SEE ALSO
77
78ROW, CELL, FORMULA
79
80=cut