remove eval Perl-Critic doesn't like it
[catagits/Catalyst-Devel.git] / share / script / myapp_cgi.pl.tt
index e68ffa4..d060967 100644 (file)
@@ -1,14 +1,7 @@
 [% startperl %]
 
-BEGIN { $ENV{CATALYST_ENGINE} ||= 'CGI' }
-
-use strict;
-use warnings;
-use FindBin;
-use lib "$FindBin::Bin/../lib";
-use [% name %];
-
-[% name %]->run;
+use Catalyst::ScriptRunner;
+Catalyst::ScriptRunner->run('[% name %]', 'CGI');
 
 1;
 
@@ -30,8 +23,8 @@ Catalyst Contributors, see Catalyst.pm
 
 =head1 COPYRIGHT
 
-
 This library is free software. You can redistribute it and/or modify
 it under the same terms as Perl itself.
 
 =cut
+