Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Template ¶
func Template(templatePath TemplatePath, data interface{}) (string, error)
Template ... given a template path and data, return the rendered template
Types ¶
type TemplateIndexObject ¶
TemplateIndexObject ... fields for the index template
type TemplateListingObject ¶
TemplateListingObject ... fields for the list template
type TemplatePath ¶
type TemplatePath string
TemplatePath ... valid paths for templates
const ( TemplateListing TemplatePath = "templates/listing.html" TemplateIndex TemplatePath = "templates/index.html" )
template types
Click to show internal directories.
Click to hide internal directories.