Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/QBit/WebInterface/Controller.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use Digest::MD5 qw(md5_hex);

use QBit::WebInterface::Controller::Form;

our %TEMPLATE_OPTIONS;
our %TEMPLATE_PRE_DEFINE;

__PACKAGE__->mk_ro_accessors(qw(path attrs));
Expand Down Expand Up @@ -75,7 +76,7 @@ sub import {
my $app_pkg = caller();
die gettext('Use only in QBit::WebInterface and QBit::Application descendant')
unless $app_pkg->isa('QBit::WebInterface')
&& $app_pkg->isa('QBit::Application');
&& $app_pkg->isa('QBit::Application');

my $pkg_stash = package_stash($package);

Expand Down Expand Up @@ -354,6 +355,7 @@ sub _process_template {
},
PRE_PROCESS => $opts{'pre_process'},
POST_PROCESS => $opts{'post_process'},
%TEMPLATE_OPTIONS,
) || throw $Template::ERROR;

$self->timelog->finish();
Expand Down