Documentation ¶
Overview ¶
Package template provides template rendering capabilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRenderer ¶
NewRenderer creates a configured template renderer.
Types ¶
type Renderer ¶
type Renderer interface { // Render executes the named template and outputs to the given io.Writer. Render(name string, req *route.Request, w io.Writer, params Params) error // Error renders an error page for the given HTTP status code. Error(code int, req *route.Request, w http.ResponseWriter) }
A Renderer facilitates rendering of templates.
Click to show internal directories.
Click to hide internal directories.