% my $scripts = stash 'addScripts'; % for my $script ( @$scripts ) { % } % if ( my $t = title ) {

Treasure DB: <%= $t %>

% } <%= content %>

">Overview % if ( my $links = stash 'links' ) { % while ( my ($link, $text) = splice @$links, 0, 2 ) { | <%= $text %> % } % } % my $help = stash 'help'; % if ( defined $help ) { | Help % } % my $sql = sql_trace; % if ( defined $$sql ) { | SQL % }

% if ( defined $help ) {
%== $help->()
% } % if ( defined $sql ) {

Please note that if you want to run the SQL commands directly in another tool, you might need to resolve the prepared statements manually. Just replace all question marks by the values listed after the colon in each line.

% }