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(@_) }
29 sub calculate { ($_[1])->get(@_[0,2]) }
32 # my ($context, $attr) = @_;
34 # return $context->get($self, $attr);
37 sub enter_scope { ($_[1])->enter_scope($_[0]) }
42 # return $context->enter_scope($self);
45 sub exit_scope { ($_[1])->exit_scope(@_[0, 2]) }
48 # my ($context, $no_delta) = @_;
50 # return $context->exit_scope($self, $no_delta);