File: server.pl

package info (click to toggle)
libmodule-starter-plugin-cgiapp-perl 0.44-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 524 kB
  • sloc: perl: 1,119; makefile: 6
file content (19 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use warnings;
use strict;
use CGI::Application::Server;
use lib 'lib';
use <tmpl_var main_module>;

my $app = <tmpl_var main_module>->new(
    TMPL_PATH => './share/templates',
    PARAMS    => {

    },
);

my $server = CGI::Application::Server->new();
$server->document_root('./t/www');
$server->entry_points({
    '/index.cgi' => $app,
});
$server->run;