Hi,
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';--end--
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;
_______________________________________________
Dancer-users mailing list
Dancer-users@perldancer.org
http://www.backup-manager.org/cgi-bin/listinfo/dancer-users