Help for this page

Select Code to Download


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