- or download this
..
index.pl
...
dir1/somescript2
dir2/somescript3
dir3/somescript4
- or download this
script/app.pl
lib/App.pm
...
lib/App/Controller/Dir2.pm
templates/layouts/default.html.ep
templates/main/index.html.ep
- or download this
#!perl
...
BEGIN { unshift @INC, "$FindBin::Bin/../lib" }
use Mojolicious::Commands;
Mojolicious::Commands->start_app('App');
- or download this
package App;
use Mojo::Base 'Mojolicious';
...
$r->get('/dir2/somescript4')->to('dir2#somescript4');
}
1;
- or download this
package App::Controller::Main;
use Mojo::Base 'Mojolicious::Controller';
...
$self->render();
}
1;
- or download this
package App::Controller::Dir1;
use Mojo::Base 'Mojolicious::Controller';
...
}
# etc...
1;
- or download this
perl script/app.pl