phoenix_gon v0.2.0 PhoenixGon.Controller

Adds helpers for working with gon on elixir controller modules.

Summary

Functions

Returns variable

Put variables to gon

Update variables in gon

Functions

get_gon(conn, key)
get_gon(Plugg.Conn, Atom.t) :: any

Returns variable.

put_gon(conn, key, value)
put_gon(Plug.Conn.t, Atom.t, any) :: Plug.Conn.t

Put variables to gon.

update_gon(conn, key, value)
update_gon(Plug.Conn.t, Atom.t, any) :: Plug.Conn.t

Update variables in gon.