Optimisation: move the importing of Template::Context to runtime.
git-svn-id: svn://10.0.0.236/trunk@128877 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
22a0573c3d
commit
d7a6f3eff3
@ -46,6 +46,10 @@ sub init {
|
||||
my($app) = @_;
|
||||
$self->SUPER::init(@_);
|
||||
require Template; import Template; # DEPENDENCY
|
||||
eval {
|
||||
package PLIF::Service::TemplateToolkit::Context;
|
||||
require Template::Context; import Template::Context; # DEPENDENCY
|
||||
};
|
||||
}
|
||||
|
||||
sub expand {
|
||||
@ -77,7 +81,6 @@ sub expand {
|
||||
package PLIF::Service::TemplateToolkit::Context;
|
||||
use strict;
|
||||
use vars qw(@ISA);
|
||||
use Template::Context;
|
||||
@ISA = qw(Template::Context);
|
||||
1;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user