Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 756c0bf3cd
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (21 sloc) 0.609 kB

Express Messages

The express-messages module provides flash notification rendering. To use simply assign it to a dynamic helper:

app.dynamicHelpers({ messages: require('express-messages') });

Installation

$ npm instal express-messages

Usage

Then in a view you may output the notifications:

<%- messages() %>

Which outputs HTML as shown below:

<div id="messages">
<ul class="info">
<li>Email queued</li> <li>Email sent</li>

</ul> <ul class="error">

<li>Email delivery failed</li>

</ul>

</div>

Jump to Line
Something went wrong with that request. Please try again.