jaredhanson / connect-flash

Flash message middleware for Connect and Express.
MIT License
1.24k stars 158 forks source link

flash for node 0.12 and lower version #28

Open mosquito1994 opened 8 years ago

mosquito1994 commented 8 years ago

I'm using node 0.12.5. I cannot get the message in jade views with forms like 'flash.info', am I using it in a wrong way? What's more, I must add res.locals.flash = req.flash(); in your flash.js after req.flash = _flash; in line 20 and successfully get the message. What's wrong with me please?