fred@fourth:~/mojo$ mojo generate lite-app 1.myapp.pl [exist] /home/fred/mojo [write] /home/fred/mojo/1.myapp.pl [chmod] /home/fred/mojo/1.myapp.pl 744 fred@fourth:~/mojo$ ll total 20 drwxrwxr-x 2 fred fred 4096 Oct 13 20:29 ./ drwxr-xr-x 9 fred fred 4096 Oct 13 20:29 ../ -rwxr--r-- 1 fred fred 388 Oct 13 20:29 1.myapp.pl* -rwxr-xr-x 1 fred fred 127 Oct 13 19:12 2.1.mojo_hello.pl* -rwxr-xr-x 1 fred fred 1925 Oct 13 18:41 5.2.elev.pl* fred@fourth:~/mojo$ ./1.myapp.pl daemon [2020-10-13 20:30:50.55473] [75108] [info] Listening at "http://*:3000" Web application available at http://127.0.0.1:3000 [2020-10-13 20:31:02.55218] [75108] [debug] [XY-c4b0j] GET "/" [2020-10-13 20:31:02.55290] [75108] [debug] [XY-c4b0j] Routing to a callback [2020-10-13 20:31:02.55381] [75108] [debug] [XY-c4b0j] Rendering template "index.html.ep" from DATA section [2020-10-13 20:31:02.55514] [75108] [debug] [XY-c4b0j] Rendering template "layouts/default.html.ep" from DATA section [2020-10-13 20:31:02.55639] [75108] [debug] [XY-c4b0j] 200 OK (0.004196s, 238.322/s) ^Cfred@fourth:~/mojo$ cat 1.myapp.pl #!/usr/bin/env perl use Mojolicious::Lite -signatures; get '/' => sub ($c) { $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 <%= title %> <%= content %> fred@fourth:~/mojo$