turbo

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FormatTurboStream = "text/vnd.turbo-stream.html"

Functions

func Extend

func Extend(tag *HTMLTagBuilder) *enhancedHTMLTagBuilder

func Frame

func Frame(id string) *frameBuilder

func Stream

func Stream() *streamBuilder

Types

type StreamAction

type StreamAction string
const (
	StreamAppend  StreamAction = "append"
	StreamPrepend StreamAction = "prepend"
	StreamReplace StreamAction = "replace"
	StreamUpdate  StreamAction = "update"
	StreamRemove  StreamAction = "remove"
	StreamBefore  StreamAction = "before"
	StreamAfter   StreamAction = "after"
)

type Streams

type Streams []streamBuilder

func (Streams) Render

func (tss Streams) Render(ctxt http.ResponseWriter, ctx context.Context)

type TurboVisitAction

type TurboVisitAction string
const (
	TurboVisitAdvance TurboVisitAction = "advance"
	TurboVisitReplace TurboVisitAction = "replace"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL