A message flashing module. Inspired by Flask.
$ npm install node-twinkle
Initialize your application:
var express =flash = ;var app = ;app
// in your view functions:app;// in your templates: (we use ejs as an example, however you can use any template as you like)<body><% if %><%%><% %></body>
Examples and tests
Examples are under the 'example' directory.
To test node-twinkle, make sure you have mocha installed, then run the following command:
$ mocha test/flash.test.js