Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Templates http.FileSystem = http.Dir(path.Join(dir, "templates"))
Templates is the development version of asset.Templates, which is an http Filesystem struct. This must match what is generated from "generate.go". See vfsgen package for details.
Functions ¶
func Render ¶
Render takes a template and renders it complete with data to the given output. This is useful if you want to render a template to a string. See RenderFile if you want a more convenient way to render to a file and have the output closed for you when complete.
func RenderFile ¶
func RenderFile(tmpl *template.Template, data interface{}, output io.WriteCloser) error
RenderFile renders a template with the given data to an output. As opposed to Render, this function will close the output when rendering is complete.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.