Documentation ¶
Index ¶
- func NewLayout(path string, efs beFs.FileSystem) (layout feature.ThemeLayout, err error)
- type Layout
- func (l *Layout) Apply(other feature.ThemeLayout)
- func (l *Layout) ApplyHtmlTemplate(enjin feature.Internals, tt *htmlTemplate.Template, ctx context.Context) (err error)
- func (l *Layout) ApplyTextTemplate(enjin feature.Internals, tt *textTemplate.Template, ctx context.Context) (err error)
- func (l *Layout) CacheKeys() (keys []string)
- func (l *Layout) CacheValue(key string) (value string)
- func (l *Layout) Name() (name string)
- func (l *Layout) NewHtmlTemplate(enjin feature.Internals, ctx context.Context) (tmpl *htmlTemplate.Template, err error)
- func (l *Layout) NewHtmlTemplateFrom(enjin feature.Internals, parent feature.ThemeLayout, ctx context.Context) (tmpl *htmlTemplate.Template, err error)
- func (l *Layout) NewTextTemplate(enjin feature.Internals, ctx context.Context) (tmpl *textTemplate.Template, err error)
- func (l *Layout) NewTextTemplateFrom(enjin feature.Internals, parent feature.ThemeLayout, ctx context.Context) (tmpl *textTemplate.Template, err error)
- type Layouts
- func (l *Layouts) ApplyHtmlTemplates(enjin feature.Internals, tmpl *htmlTemplate.Template, ctx context.Context) (err error)
- func (l *Layouts) ApplyTextTemplates(enjin feature.Internals, tmpl *textTemplate.Template, ctx context.Context) (err error)
- func (l *Layouts) GetLayout(name string) (layout feature.ThemeLayout)
- func (l *Layouts) ListLayouts() (names []string)
- func (l *Layouts) NewHtmlTemplate(enjin feature.Internals, name string, ctx context.Context) (tmpl *htmlTemplate.Template, err error)
- func (l *Layouts) NewTextTemplate(enjin feature.Internals, name string, ctx context.Context) (tmpl *textTemplate.Template, err error)
- func (l *Layouts) SetLayout(name string, layout feature.ThemeLayout)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLayout ¶
func NewLayout(path string, efs beFs.FileSystem) (layout feature.ThemeLayout, err error)
Types ¶
type Layout ¶
func (*Layout) Apply ¶ added in v0.5.0
func (l *Layout) Apply(other feature.ThemeLayout)
func (*Layout) ApplyHtmlTemplate ¶
func (*Layout) ApplyTextTemplate ¶
func (*Layout) CacheValue ¶ added in v0.5.0
func (*Layout) NewHtmlTemplate ¶
func (*Layout) NewHtmlTemplateFrom ¶
func (l *Layout) NewHtmlTemplateFrom(enjin feature.Internals, parent feature.ThemeLayout, ctx context.Context) (tmpl *htmlTemplate.Template, err error)
func (*Layout) NewTextTemplate ¶
func (*Layout) NewTextTemplateFrom ¶
func (l *Layout) NewTextTemplateFrom(enjin feature.Internals, parent feature.ThemeLayout, ctx context.Context) (tmpl *textTemplate.Template, err error)
type Layouts ¶
func (*Layouts) ApplyHtmlTemplates ¶
func (*Layouts) ApplyTextTemplates ¶
func (*Layouts) ListLayouts ¶ added in v0.5.0
func (*Layouts) NewHtmlTemplate ¶
func (*Layouts) NewTextTemplate ¶
Click to show internal directories.
Click to hide internal directories.