Bigtop
view release on metacpan or search on metacpan
lib/Bigtop/Backend/CGI/Gantry.pm view on Meta::CPAN
$file_type = $conf_type;
$write_cgi = 0 if ( $file_type !~ s/^CGI|CGI$// );
}
my $cgi_file = File::Spec->catfile(
$base_dir, "app.${file_type}cgi"
);
Bigtop::write_file( $cgi_file, $content->{ cgi } ) if $write_cgi;
chmod 0755, $cgi_file;
if ( $tree->get_config->{CGI}{with_server} ) {
next CONF_TYPE if ( $gantry_conf and $conf_type ne 'base' );
my $server_file = File::Spec->catfile(
$base_dir,
"app.${server_type}server"
);
Bigtop::write_file( $server_file, $content->{ server } );
chmod 0755, $server_file;
}
}
}
our $template_is_setup = 0;
our $default_template_text = <<'EO_TT_BLOCKS';
[% BLOCK cgi_script %]
#![% perl_path +%]
use strict;
( run in 0.571 second using v1.01-cache-2.11-cpan-496ff517765 )