Skip to content

Commit

Permalink
Add documentation for message consuming
Browse files Browse the repository at this point in the history
  • Loading branch information
gluxon committed Apr 2, 2015
1 parent 0e922bf commit 7aa0103
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 7aa0103

Please sign in to comment.