Documentation ¶
Index ¶
- type TemplateDirHandler
- type TemplateDirHandlerOption
- func WithAlwaysReload(alwaysReload bool) TemplateDirHandlerOption
- func WithAppendRendererOptions(rendererOptions ...render.RendererOption) TemplateDirHandlerOption
- func WithDefaultFS(fs fs.FS, localPath string) TemplateDirHandlerOption
- func WithLocalDirectory(localPath string) TemplateDirHandlerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateDirHandler ¶
type TemplateDirHandler struct { LocalDirectory string IndexTemplateName string MarkdownBaseTemplateName string // contains filtered or unexported fields }
func NewTemplateDirHandler ¶
func NewTemplateDirHandler(options ...TemplateDirHandlerOption) *TemplateDirHandler
func NewTemplateDirHandlerFromConfig ¶
func NewTemplateDirHandlerFromConfig(td *config.TemplateDir, options ...TemplateDirHandlerOption) (*TemplateDirHandler, error)
type TemplateDirHandlerOption ¶
type TemplateDirHandlerOption func(handler *TemplateDirHandler)
func WithAlwaysReload ¶
func WithAlwaysReload(alwaysReload bool) TemplateDirHandlerOption
func WithAppendRendererOptions ¶
func WithAppendRendererOptions(rendererOptions ...render.RendererOption) TemplateDirHandlerOption
func WithDefaultFS ¶
func WithDefaultFS(fs fs.FS, localPath string) TemplateDirHandlerOption
func WithLocalDirectory ¶
func WithLocalDirectory(localPath string) TemplateDirHandlerOption
Click to show internal directories.
Click to hide internal directories.