/usr/share/doc/libbusiness-paypal-api-perl/examples/myapp.pl is in libbusiness-paypal-api-perl 0.74-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/usr/bin/perl
use Mojolicious::Lite;
# You can spin this up when testing t/advanced in order to avoid 404s
get '/' => sub {
my $c = shift;
$c->render( template => 'index' );
};
app->start;
__DATA__
@@ index.html.ep
% layout 'default';
% title 'Welcome';
Welcome to the Mojolicious real-time web framework!
@@ layouts/default.html.ep
<!DOCTYPE html>
<html>
<head><title><%= title %></title></head>
<body><%= content %></body>
</html>
|