Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error raised by View() when the HtmlContext isn't available ErrContextNotFound = errors.New("%s not found in %s", "HtmlContext", "http.Request") )
View Source
var Files = html.NewCollection( html.NewTemplate("index", index), )
Functions ¶
func HtmlContext ¶
func HtmlContext(ctx context.Context) *html.Collection
HtmlContext returns the HTML Template context attached to a context
func Middleware ¶
Middleware that attaches a HTML Template context to the request
func WithHtmlContext ¶
WithHtmlContext returns a new http.Request Context with a given HTML Template context attached if given
Types ¶
type Collection ¶
type Collection = html.Collection
Click to show internal directories.
Click to hide internal directories.