Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderTemplate ¶
func RenderTemplate(w http.ResponseWriter, r *http.Request, name string, data interface{})
RenderTemplate renders an HTML template to a response. The provided data will be available in the Data field in the template. There are some additional fields extracted from the request (e.g. User) available in the template if the request is not nil. If an error is encountered, appropriate error codes and messages will be set on the response; do not write additional data to the response after calling this function.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.