Documentation ¶
Index ¶
- Constants
- Variables
- type Context
- func (c *Context) Href() string
- func (c *Context) HrefPartial(partial string) string
- func (c *Context) ParamInt32(key string) (int32, error)
- func (c *Context) ParamInt64(key string) (int64, error)
- func (c *Context) RequestIsBoosted() bool
- func (c *Context) RequestIsEnabled() bool
- func (c *Context) RequestPath() string
- func (c *Context) RequestPrompt() string
- func (c *Context) RequestTarget() string
- func (c *Context) RequestTrigger() string
- func (c *Context) RequestTriggerName() string
- func (c *Context) ResponseError(status int, err error)
- func (c *Context) ResponsePush(push string)
- func (c *Context) ResponseRedirect(path string)
- func (c *Context) ResponseRefresh(refresh bool)
- func (c *Context) ResponseTrigger(trigger string)
- func (c *Context) ResponseTriggerAfterSettle(trigger string)
- func (c *Context) ResponseTriggerAfterSwap(trigger string)
- func (c *Context) Templ(status int, component templ.Component)
- type HTMLTemplRenderer
- type Renderer
- type Response
- type Route
Constants ¶
View Source
const ( HeaderRequest = "HX-Request" HeaderBoosted = "HX-Boosted" HeaderTrigger = "HX-Trigger" HeaderTriggerName = "HX-Trigger-Name" HeaderTriggerAfterSwap = "HX-Trigger-After-Swap" HeaderTriggerAfterSettle = "HX-Trigger-After-Settle" HeaderTarget = "HX-Target" HeaderPrompt = "HX-Prompt" HeaderPush = "HX-Push" HeaderRedirect = "HX-Redirect" HeaderRefresh = "HX-Refresh" )
Variables ¶
View Source
var Default = &HTMLTemplRenderer{}
Functions ¶
This section is empty.
Types ¶
type Context ¶
func (*Context) HrefPartial ¶ added in v0.0.5
func (*Context) ParamInt32 ¶ added in v0.0.7
func (*Context) ParamInt64 ¶ added in v0.0.7
func (*Context) RequestIsBoosted ¶
func (*Context) RequestIsEnabled ¶
func (*Context) RequestPath ¶
func (*Context) RequestPrompt ¶
func (*Context) RequestTarget ¶
func (*Context) RequestTrigger ¶
func (*Context) RequestTriggerName ¶
func (*Context) ResponseError ¶
func (*Context) ResponsePush ¶
func (*Context) ResponseRedirect ¶
func (*Context) ResponseRefresh ¶
func (*Context) ResponseTrigger ¶
func (*Context) ResponseTriggerAfterSettle ¶
func (*Context) ResponseTriggerAfterSwap ¶
type HTMLTemplRenderer ¶
type HTMLTemplRenderer struct {
FallbackHtmlRenderer render.HTMLRender
}
type Renderer ¶
func NewRenderer ¶
func (Renderer) WriteContentType ¶
func (t Renderer) WriteContentType(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.