View Source Torch.PageView (Torch v4.1.0)

Link to this section Summary

Functions

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

Link to this section Functions

Specs

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"