Mercurial > pub > site.implab
annotate public_html/cgi-bin/handler.pl @ 6:2d1a0a75fc49
added css, templates
author | sergey |
---|---|
date | Mon, 12 May 2014 18:05:30 +0400 |
parents | aac1085b256d |
children |
rev | line source |
---|---|
0 | 1 #!/usr/bin/perl -wT |
2 #-d:NYTProf | |
3 use strict; | |
4 | |
5 BEGIN { | |
6 require "./_config.pm"; | |
7 } | |
8 | |
9 use CGI; | |
10 use IMPL::require { | |
11 TApp => 'Benzin::Web::Application' | |
12 }; | |
13 | |
14 eval { | |
15 my $instance = TApp->spawn; | |
16 | |
17 $instance->Run(); | |
18 }; | |
19 if ($@) { | |
20 print CGI::header(-status => 500, type => 'text/plain'); | |
21 print $@; | |
22 } |