Skip to content

Commit

Permalink
Merge pull request #3 from gluxon/master
Browse files Browse the repository at this point in the history
Add documentation for message consuming
  • Loading branch information
jonathanong committed Apr 2, 2015
2 parents 0e922bf + 7aa0103 commit 92fd748
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ for message in flash
p= message.message
```

```jade
while message = flash.shift() // consume messages as jade reads them
a.alert(class='alert-' + message.type)
p= message.message
```

## API

### req.flash([type], msg)
Expand Down

0 comments on commit 92fd748

Please sign in to comment.