PhoenixTurbo.ControllerHelper (PhoenixTurbo v0.1.0) View Source

Link to this section Summary

Functions

The same effect with Phoenix.Controller.render/2 except subtracting layout and putting turbo stream content type to the HTTP response content type.

The same effect with Phoenix.Controller.render/3 except subtracting layout and putting turbo stream content type to the HTTP response content type.

Return true if it's a "turbo-stream" request. E.g. Clicking link or submitting form inside the <turbo-frame> tag.

Link to this section Functions

Link to this function

render_turbo_stream(conn, template_or_assigns)

View Source

Specs

render_turbo_stream(Plug.Conn.t(), Keyword.t() | map() | binary() | atom()) ::
  Plug.Conn.t()

The same effect with Phoenix.Controller.render/2 except subtracting layout and putting turbo stream content type to the HTTP response content type.

Link to this function

render_turbo_stream(conn, template, assigns)

View Source

Specs

render_turbo_stream(
  Plug.Conn.t(),
  binary() | atom(),
  Keyword.t() | map() | binary() | atom()
) :: Plug.Conn.t()

The same effect with Phoenix.Controller.render/3 except subtracting layout and putting turbo stream content type to the HTTP response content type.

Link to this function

turbo_stream_request?(conn)

View Source

Specs

turbo_stream_request?(Plug.Conn.t()) :: boolean()

Return true if it's a "turbo-stream" request. E.g. Clicking link or submitting form inside the <turbo-frame> tag.