Documentation ¶
Overview ¶
Package pongo2gin is a template renderer that can provides a Gin-compatible template renderer using the Pongo2 template library https://github.com/flosch/pongo2
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pongo2 ¶
type Pongo2 struct { Suffix string // contains filtered or unexported fields }
Pongo2 is a custom Gin template renderer using Pongo2.
type Render ¶
type Render struct {
// contains filtered or unexported fields
}
func (Render) Render ¶
func (r Render) Render(w http.ResponseWriter) error
Render should render the template to the response.
func (Render) WriteContentType ¶
func (r Render) WriteContentType(w http.ResponseWriter)
WriteContentType should add the Content-Type header to the response when not set yet.
Click to show internal directories.
Click to hide internal directories.