connect-flash
connect-flash copied to clipboard
Use flash scope in Handlebars template without passing the value through controllers
Is there any way to read a value of the flash scope in a Handlebars template (I'm ussing express-handlebars module) without passing explicitly from the controller? Something like this:
<p class="error-msg">{{flash.error}}</p>