Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 609 Bytes

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') });


$ npm instal express-messages


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>



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