Skip to content

Commit

Permalink
added req.flash to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg committed May 22, 2012
1 parent 3adbdeb commit d4fca87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ The _express-messages_ module provides flash notification rendering. To use simp

## Usage

On the server, add messages like this:

req.flash("info", "herp derp %s", something)

Then in a view you may output the notifications based on your templating engine:

### [EJS](https://github.com/visionmedia/ejs)
Expand Down

0 comments on commit d4fca87

Please sign in to comment.