app.post() not working with Express
Your post request is send to /test
( since you've used action
attribute of your form ), while your express listener is listening to any post requests on /login
.
Your code should look like :
block content h1 Login h3 "tj" and "foobar" form(method="post", action="/login")
If you want this to work!