In this pull request it is possible to:

Call Bugzilla’s authentication function from Mojolicious controllers

Render Bugzilla’s templates (which are template toolkit) from Mojo’s render

(no small thing as we do some odd things to TT2)

(no small thing as we do some odd things to TT2) Parts of bugzilla that need to examine the HTTP request can (mostly) do so now

This patch does a lot of plumbing, but the result of this work is that

you could replace index.cgi with something like the following:

get '/' => sub { my $c = shift; my $user = Bugzilla->login(LOGIN_OPTIONAL); $c->stash->{use_login_page} = 1; $c->render( template => 'index.html.tmpl', handler => 'bugzilla', user => $user ); };