mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Optimisation: move the importing of Template::Context to runtime.
This commit is contained in:
parent
1998746fe3
commit
ded9adb65d
@ -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…
Reference in New Issue
Block a user