=================================================================== RCS file: /cvs/todotxt/Text-Todo/bin/dudelicious.pl,v retrieving revision 1.1 retrieving revision 1.3 diff -u -r1.1 -r1.3 --- todotxt/Text-Todo/bin/dudelicious.pl 2010/04/26 20:44:15 1.1 +++ todotxt/Text-Todo/bin/dudelicious.pl 2010/04/26 21:44:30 1.3 @@ -1,5 +1,9 @@ #!/usr/bin/env perl +package Dudelicious; + +BEGIN { use FindBin; use lib "$FindBin::Bin/mojo/lib" } + use Mojolicious::Lite; get '/' => 'index'; @@ -9,7 +13,7 @@ $self->render_text($self->param('groovy'), layout => 'funky'); }; -app->start; +app->start unless caller(); __DATA__ @@ index.html.ep