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