Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// The directory to get views from. Required.
ViewsPath string
// The default layout to use when none is provided. Defaults to "layout.html".
DefaultLayout string
// Optional additional functions to register to the template's function map.
Functions template.FuncMap
// Whether to monitor the views directory for changes and automatically
// re-parse templates. Defaults to false.
MonitorChanges bool
// Which logger to use for any internal log purposes. Defaults to fire.Logger.
Logger fasthttp.Logger
}
Click to show internal directories.
Click to hide internal directories.