View Source Antikythera.Plug.Flash (antikythera v0.5.1)
Plug to automatically load flash messages from session.
Usage
Add the following line in a controller module (note that the order of the plugs is important):
plug Antikythera.Plug.Session, :load, [key: "12345678"]
plug Antikythera.Plug.Flash , :load, []
Then you can access flash messages by
Summary
Functions
@spec load(Antikythera.Conn.t(), any()) :: Antikythera.Conn.t()