15 Mar
2012
15 Mar
'12
5:11 p.m.
Oops, forget about "Exception::Class" part, code should look like this: --begin-- # This is application generated by "dancer -a test", only test/lib/test.pm was modified package test; use Dancer ':syntax'; our $VERSION = '0.1'; get '/' => sub { <<EOF; <!doctype html> <html> <head><title>test</title></head> <body> <form action="/" method="post"> <input type="text" name="login"><br> <input type="password" name="password"><br> <input type="submit" name="submit"> </form> </body> EOF }; post '/' => sub { die 'error!'; }; true; --end--