Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    use Mojolicious::Lite;
    ...
      <head><title><%= title %></title></head>
      <body><%= content %></body>
    </html>
    
  2. or download this
    get '/validate/*filename' => sub{
        my $c = shift;
        print $c->param('filename'),"\n\n\n\n"; # print to console
        $c->render('index');
    };
    
  3. or download this
    <input type='button' value='validate' onclick = "$.get('/validate/<%= 
    +$file %>');">