« auto/share/dist/Module-Starter-Plugin-CGIApp/titanium/Module.pm
↑ Summary
auto/share/dist/Module-Starter-Plugin-CGIApp/titanium/server.pl »
| 1 | use warnings; | ||
| 2 | use strict; | ||
| 3 | use CGI::Application::Server; | ||
| 4 | use lib 'lib'; | ||
| 5 | use <tmpl_var main_module>; | ||
| 6 | |||
| 7 | my $app = <tmpl_var main_module>->new( | ||
| 8 | TMPL_PATH => './share/templates', | ||
| 9 | PARAMS => { | ||
| 10 | |||
| 11 | }, | ||
| 12 | ); | ||
| 13 | |||
| 14 | my $server = CGI::Application::Server->new(); | ||
| 15 | $server->document_root('./t/www'); | ||
| 16 | $server->entry_points({ | ||
| 17 | '/index.cgi' => $app, | ||
| 18 | }); | ||
| 19 | $server->run; |