iguration as JSON
my $cfg_json = to_json($toolbar_cfg);
# Do some replacements so that the JSON data can be made into a JS string
# wrapped in single quotes
$cfg_json =~ s!\\!\\\\
!gm;
$cfg_json =~ s!\n!\\\n!gm;
$cfg_json =~ s!'!\\'!gm;
$html =~ s/%DEBUGTOOLBAR_CFG%/$cfg_json/m;
my $uri_base = request->uri_base . $path_prefix;
$html =~ s/%BASE%/$uri_ba