Skip to content
Myr

Added flash formatter docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent fa3adc7 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:docs/guide.md+4 added
404 unmodified lines
405406 req.flash();407 // => { error: ['email delivery failed'], info: [] }408409Flash notification message may also utilize formatters, by default only the %s string formatter is available:410411 req.flash('info', 'email delivery to _%s_ from _%s_ failed.', toUser, fromUser);412413### req.isXMLHttpRequest414415Also aliased as _req.xhr_, this getter checks the _X-Requested-With_ header416to see if it was issued by an _XMLHttpRequest_:
301 unmodified lines