1 package Excel::Template::Base;
5 use Excel::Template::Factory;
11 push @_, %{shift @_} while ref $_[0] eq 'HASH';
13 and die "$class->new() called with odd number of option parameters\n";
17 # Do not use a hashref-slice here because of the uppercase'ing
19 $self->{uc $_} = $x{$_} for keys %x;
24 *isa = *isa = \&Excel::Template::Factory::isa;
25 *is_embedded = *is_embedded = \&Excel::Template::Factory::is_embedded;
27 #sub calculate { ($_[1])->get(@_[0,2]) }
30 # my ($context, $attr) = @_;
32 # return $context->get($self, $attr);
35 sub enter_scope { ($_[1])->enter_scope($_[0]) }
40 # return $context->enter_scope($self);
43 sub exit_scope { ($_[1])->exit_scope($_[0], $_[2]) }
46 # my ($context, $no_delta) = @_;
48 # return $context->exit_scope($self, $no_delta);
59 # Everyone seems to have their own versions.
60 # Maybe, it's part of the API to require that you have the right one of these
83 Excel::Template::Base - Excel::Template::Base
87 Base class for all Excel::Template classes
117 This is a wrapper around Excel::Template::Context->get()
121 This is a wrapper around Excel::Template::Factory->isa()
125 This is a wrapper around Excel::Template::Factory->is_embedded()
129 Rob Kinyon (rob.kinyon@gmail.com)