Torch v2.0.0-rc.2 Torch.PageView View Source

Link to this section Summary

Functions

Takes the controller action name and appends it to the torch- prefix

Link to this section Functions

Link to this function

body_classes(conn) View Source
body_classes(Plug.Conn.t()) :: String.t()

Takes the controller action name and appends it to the torch- prefix.

Example

iex> body_classes(%Plug.Conn{private: %{phoenix_action: :create}})
"torch-create"