Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsHTMX ¶
IsHTMX returns bool indicating the presence of the "HX-Request" Request Header with a value of "true" This is useful in determining what and how to return
func Respond ¶
Respond takes in the .gohtml template file(s), parses the template(s) and return the result to the client: if content-type is "application/json", it returns json if HX-Request is "true", it returns the HTMX fragment else it returns a full, stand alone page, if the block is "main"
func SSERespond ¶
SSERespond parses the template(s) and return an SSE formatted data block
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.