return $file;
}
-sub parse_html_template2 {
+sub parse_html_template {
$main::lxdebug->enter_sub();
my ($self, $file, $additional_params) = @_;
$file = $self->_prepare_html_template($file, $additional_params);
- my $template = Template->new({ 'INTERPOLATE' => 0,
- 'EVAL_PERL' => 0,
- 'ABSOLUTE' => 1,
- 'CACHE_SIZE' => 0,
- 'PLUGIN_BASE' => 'SL::Template::Plugin',
+ my $template = Template->new({ 'INTERPOLATE' => 0,
+ 'EVAL_PERL' => 0,
+ 'ABSOLUTE' => 1,
+ 'CACHE_SIZE' => 0,
+ 'PLUGIN_BASE' => 'SL::Template::Plugin',
+ 'INCLUDE_PATH' => '.:templates/webpages',
}) || die;
map { $additional_params->{$_} ||= $self->{$_} } keys %{ $self };
$self->{title} = $title if ($title);
$self->header();
- print $self->parse_html_template2("generic/error", $add_params);
+ print $self->parse_html_template("generic/error", $add_params);
die("Error: $error\n");
}
$self->{title} = $title if ($title);
$self->header();
- print $self->parse_html_template2("generic/information", $add_params);
+ print $self->parse_html_template("generic/information", $add_params);
die("Information: $error\n");
}