Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateHandler ¶
type TemplateHandler struct { TemplateFile string // contains filtered or unexported fields }
func NewTemplateHandler ¶
func NewTemplateHandler(templateFile string, options ...TemplateHandlerOption) *TemplateHandler
func NewTemplateHandlerFromConfig ¶
func NewTemplateHandlerFromConfig( path string, t *config.Template, options ...TemplateHandlerOption, ) (*TemplateHandler, error)
type TemplateHandlerOption ¶
type TemplateHandlerOption func(handler *TemplateHandler)
func WithAlwaysReload ¶
func WithAlwaysReload(alwaysReload bool) TemplateHandlerOption
func WithAppendRendererOptions ¶
func WithAppendRendererOptions(rendererOptions ...render.RendererOption) TemplateHandlerOption
func WithDefaultFS ¶
func WithDefaultFS(fs fs.FS) TemplateHandlerOption
Click to show internal directories.
Click to hide internal directories.