Skip to content

Commit

Permalink
Merge pull request #4 from niftylettuce/master
Browse files Browse the repository at this point in the history
Readme doc addition for Jade
  • Loading branch information
tj committed Sep 25, 2011
2 parents 588cbb1 + e26e097 commit 3adbdeb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Readme.md
Expand Up @@ -10,10 +10,16 @@ The _express-messages_ module provides flash notification rendering. To use simp

## Usage

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

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

<%- messages() %>

### [Jade](http://jade-lang.com/)

!= messages()

Which outputs HTML as shown below:

<div id="messages">
Expand Down

0 comments on commit 3adbdeb

Please sign in to comment.