PhoenixTurbo.ViewHelper (PhoenixTurbo v0.1.0) View Source

Link to this section Summary

Functions

Return "trubo-cable-stream-source" tag.

Link to this section Functions

Link to this function

turbo_stream_tag(conn, streamable)

View Source

Specs

turbo_stream_tag(Plug.Conn.t(), struct() | list() | binary()) :: {:safe, list()}

Return "trubo-cable-stream-source" tag.

<%= turbo_stream_tag @conn, @post %> would generate <turbo-cable-stream-source channel="posts_1" signed-stream-name="xxxxx"></turbo-cable-stream-source>