1 package Excel::Template::Base;
8 use Excel::Template::Factory;
14 push @_, %{shift @_} while UNIVERSAL::isa($_[0], 'HASH');
16 and die "$class->new() called with odd number of option parameters\n";
20 # Do not use a hashref-slice here because of the uppercase'ing
22 $self->{uc $_} = $x{$_} for keys %x;
27 sub isa { Excel::Template::Factory::isa(@_) }
28 sub is_embedded { Excel::Template::Factory::is_embedded(@_) }
30 sub calculate { ($_[1])->get(@_[0,2]) }
33 # my ($context, $attr) = @_;
35 # return $context->get($self, $attr);
38 sub enter_scope { ($_[1])->enter_scope($_[0]) }
43 # return $context->enter_scope($self);
46 sub exit_scope { ($_[1])->exit_scope(@_[0, 2]) }
49 # my ($context, $no_delta) = @_;
51 # return $context->exit_scope($self, $no_delta);
83 Excel::Template::Base - Excel::Template::Base
87 Base class for all Excel::Template classes
119 Rob Kinyon (rob.kinyon@gmail.com)