phoenix_gon_fork v0.5.1 PhoenixGon.Controller View Source

Adds helpers for working with gon on elixir controller modules.

Link to this section Summary

Functions

Returns variable.

Put variables to gon.

Update variables in gon.

Link to this section Functions

Link to this function

get_gon(conn, key)

View Source
get_gon(Plug.Conn.t(), Atom.t()) :: any()

Returns variable.

Link to this function

put_gon(conn, key, value)

View Source
put_gon(Plug.Conn.t(), Atom.t(), any()) :: Plug.Conn.t()

Put variables to gon.

Link to this function

update_gon(conn, key, value)

View Source
update_gon(Plug.Conn.t(), Atom.t(), any()) :: Plug.Conn.t()

Update variables in gon.