jaredhanson / jaredhanson/connect-flash

flash for node 0.12 and lower version

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.2k
Forks
173
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported behavior with Node 0.12.5, Jade views, and flash.info usage. Inspect flash.js around line 20, including req.flash and the manually added res.locals.flash assignment. Done means determining whether this usage is supported and documenting or correcting the observed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.