Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseTemplates = []string{
"web/templates/common/base.go.html",
"web/templates/common/head.go.html",
"web/templates/common/menu.go.html",
}
BaseTemplates represents all partial templates used to build the base of the site.
View Source
var ( // DefaultLoader is the default loader to be used with LoadTemplates. DefaultLoader = &EmbedLoader{} )
Functions ¶
Types ¶
type EmbedLoader ¶ added in v1.1.8
type EmbedLoader struct{}
EmbedLoader loads templates from the templates directory.
func NewEmbedLoader ¶ added in v1.1.8
func NewEmbedLoader() *EmbedLoader
NewEmbedLoader creates a new EmbedLoader.
func (*EmbedLoader) LoadTemplates ¶ added in v1.1.8
func (l *EmbedLoader) LoadTemplates(filename string) (string, error)
LoadTemplates reads and returns the file's content.
Click to show internal directories.
Click to hide internal directories.