Documentation ¶
Index ¶
- Constants
- func IsTurbo(r *http.Request) bool
- func TurboFrameName(r *http.Request) string
- type Stream
- func (stream *Stream) Append(target string, safeContent string)
- func (stream *Stream) Build() StreamData
- func (stream *Stream) Custom(action string, attrs map[string]any)
- func (stream *Stream) CustomContent(action string, attrs map[string]any, safeContent string)
- func (stream *Stream) Prepend(target string, safeContent string)
- func (stream *Stream) Replace(target string, safeContent string)
- type StreamData
Constants ¶
View Source
const ( StreamContentType = "text/vnd.turbo-stream.html" ActionNameAppend = "append" ActionNamePrepend = "prepend" )
Variables ¶
This section is empty.
Functions ¶
func TurboFrameName ¶ added in v0.2.2
Types ¶
type Stream ¶
func (*Stream) Build ¶ added in v0.2.2
func (stream *Stream) Build() StreamData
func (*Stream) CustomContent ¶ added in v0.2.2
type StreamData ¶ added in v0.2.2
type StreamData []byte
Click to show internal directories.
Click to hide internal directories.