Skip to content

Instantly share code, notes, and snippets.

Brian MacArthur brianmacarthur

Block or report user

Report or block brianmacarthur

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
brianmacarthur / flash-app.js
Last active Nov 7, 2019
Flash messaging in Express 4: express-flash vs. custom middleware in ejs, handlebars, or jade
View flash-app.js
var express = require('express');
var cookieParser = require('cookie-parser');
var session = require('express-session');
var flash = require('express-flash');
var handlebars = require('express-handlebars')
var app = express();
var sessionStore = new session.MemoryStore;
// View Engines
You can’t perform that action at this time.