/usr/share/doc/libtext-xslate-perl/examples/mojo.psgi is in libtext-xslate-perl 3.5.6-1.
This file is owned by root:root, with mode 0o644.
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 | #!/usr/bin/perl
package HelloMojo;
use strict;
use warnings;
use Mojolicious 1.0;
use Mojolicious::Lite;
#use MojoX::Renderer::Xslate; # this is automatically loaded
plugin 'xslate_renderer';
get '/' => 'index';
get '/:name' => 'index';
app->start;
__DATA__
@@ index.html.tx
<html>
<body>
Hello, <: $c.req.param('lang') // "Xslate" :> world!
</body>
</html>
|