Documentation ¶
Overview ¶
Copyright (C) 2024 early (LGPL)
Index ¶
- type Config
- type Part
- func (p *Part) FileDependencies() []string
- func (p *Part) IncludeTagName() bool
- func (p *Part) Includes() []compile.Source
- func (p *Part) Name() string
- func (p *Part) OnLoad() render.OnLoadFunc
- func (p *Part) Source() include.Opener
- func (p *Part) TemplateFuncs() template.FuncMap
- func (p *Part) With(optional ...func(*Part)) *Part
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config func(*Part)
func OnLoad ¶
func OnLoad(f render.OnLoadFunc) Config
func Tag ¶
Tag(false) will disable the inclusion of the "custom tag" for this part. When using Web Components, the user-defined name is included in the HTML document. This is also the default behavior for template parts, but you may disable it with this config when it causes problems.
Click to show internal directories.
Click to hide internal directories.