Documentation
¶
Overview ¶
templ: version: v0.3.833
Index ¶
Constants ¶
View Source
const ( HeaderHXRequest = "HX-Request" HeaderTemplSkipModify = "templ-skip-modify" // PathProxyEvents defines the path for templier proxy websocket events endpoint. // This path is very unlikely to collide with any path used by the app server. PathProxyEvents = "/__templier/events" ReverseProxyRetries = 20 ReverseProxyInitialDelay = 100 * time.Millisecond ReverseProxyBackoffExponent = 1.5 )
Variables ¶
This section is empty.
Functions ¶
func MustRenderJSInjection ¶ added in v0.10.6
func RenderErrpage ¶ added in v0.10.6
func WriteWithInjection ¶ added in v0.10.6
WriteWithInjection writes to w the body with the injection either at the end of the head or at the end of the body. If neither the head nor the body closing tags are the injection is written to w before body.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New( httpClient *http.Client, stateTracker *statetrack.Tracker, reload *broadcaster.SignalBroadcaster, config *config.Config, ) *Server
Click to show internal directories.
Click to hide internal directories.