Documentation ¶
Overview ¶
Package templates provides tree-based template loading and rendering using HTML templates from the Go standard library.
Use Templates to obtain an acceptable.Processor loaded with the specified template files.
Index ¶
Constants ¶
View Source
const DefaultPage = "_index.html"
Variables ¶
View Source
var Fs = afero.NewOsFs()
Fs is used to obtain file information and content. It can be stubbed for testing.
View Source
var ReloadOnTheFly = false
ReloadOnTheFly enables a development mode that reloads template files whenever they change, without restarting the server. This reduces performance and should be off (false) for production.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.