Torch v2.0.0-rc.3 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(conn)
View Source
body_classes(Plug.Conn.t()) :: String.t()
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"