View Source Torch.PageView (Torch v5.4.0)
This module is deprecated. This module will be fully removed in Torch 6.0.
Summary
Functions
body_classes(conn)
deprecated
DEPRECATED: Use Torch.Helpers.body_classes/1 instead
Functions
This function is deprecated. Use Torch.Helpers.body_classes/1 instead.
@spec body_classes(Plug.Conn.t()) :: String.t()
DEPRECATED: Use Torch.Helpers.body_classes/1 instead
Takes the controller action name and appends it to the torch- prefix.
Example
iex> body_classes(%Plug.Conn{private: %{phoenix_action: :create}})
"torch-create"
iex> body_classes(%Plug.Conn{private: %{phoenix_action: :custom_action}})
"torch-custom-action"