package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Dec 24, 2021
License: BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Renderer is able to render HTML templates. Templates will be compiled the first
time they are requested, and cached thereafter.
NewRenderer returns a new "Renderer" struct
Render renders the requested template with the given data into w.
"template" is suffixed with ".html", and then rendered together with "layout.html".
type Values map[string]interface{}
Values is an arbitrary tree of data to be passed to Template rendering.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.