Optimisation: move the importing of Template::Context to runtime.

This commit is contained in:
ian%hixie.ch 2002-09-05 16:24:58 +00:00
parent 1998746fe3
commit ded9adb65d

View File

@ -46,6 +46,10 @@ sub init {
my($app) = @_; my($app) = @_;
$self->SUPER::init(@_); $self->SUPER::init(@_);
require Template; import Template; # DEPENDENCY require Template; import Template; # DEPENDENCY
eval {
package PLIF::Service::TemplateToolkit::Context;
require Template::Context; import Template::Context; # DEPENDENCY
};
} }
sub expand { sub expand {
@ -77,7 +81,6 @@ sub expand {
package PLIF::Service::TemplateToolkit::Context; package PLIF::Service::TemplateToolkit::Context;
use strict; use strict;
use vars qw(@ISA); use vars qw(@ISA);
use Template::Context;
@ISA = qw(Template::Context); @ISA = qw(Template::Context);
1; 1;