-nwhnw
Last Updated: February 25, 2016
·
115
· pssdbt
Screen shot 2012 10 28 at 2.30.50 pm

Display all flashed messages in SailsJS with Jade

Since most examples for SailsJS use ejs, here is how you would display all flashed messages using Jade.

- var flashes = req.flash()
each notice, type in flashes
  if notice.length > 0
    ul(class=type).notice
      each message in notice
        li= __(message)
Say Thanks
Respond