phoenix_gon v0.4.0 PhoenixGon.Utils

Usefull methods for elixir modules

Link to this section Summary

Functions

Retusn elixir assets

Return if mix env dev

Return if mix env prod

Return current gon namespace

Returns all elixir settings

Return elixir gon map

Link to this section Functions

Link to this function assets(conn)
assets(Plug.Conn) :: Map.t()

Retusn elixir assets.

Link to this function mix_env_dev?(conn)
mix_env_dev?(Plug.Conn.t()) :: Boolean.t()

Return if mix env dev

Link to this function mix_env_prod?(conn)
mix_env_prod?(Plug.Conn.t()) :: Booleant.t()

Return if mix env prod

Link to this function namespace(conn)
namespace(Plug.Conn) :: List.t()

Return current gon namespace.

Link to this function settings(conn)
settings(Plug.Conn) :: Map.t()

Returns all elixir settings.

Link to this function variables(conn)
variables(Plug.Conn.t()) :: Plug.Conn.t()

Return elixir gon map.