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