Documentation
¶
Index ¶
- Variables
- func New(origin, path string, themeFs, staticFs fs.FileSystem, autoload bool) (ft feature.Theme, err error)
- type CTheme
- func (t *CTheme) AddFormatProvider(providers ...feature.PageFormatProvider)
- func (t *CTheme) FindLayout(named string) (layout feature.ThemeLayout, name string, ok bool)
- func (t *CTheme) GetBlockThemeNames() (names []string)
- func (t *CTheme) GetConfig() (config *feature.ThemeConfig)
- func (t *CTheme) GetFormat(name string) (format feature.PageFormat)
- func (t *CTheme) GetParent() (parent feature.Theme)
- func (t *CTheme) Layouts() feature.ThemeLayouts
- func (t *CTheme) ListArchetypes() (names []string)
- func (t *CTheme) ListFormats() (names []string)
- func (t *CTheme) Locales() (locales fs.FileSystem, ok bool)
- func (t *CTheme) MakeArchetype(enjin feature.Internals, name string) (format string, data []byte, err error)
- func (t *CTheme) MatchFormat(filename string) (format feature.PageFormat, match string)
- func (t *CTheme) Middleware(next http.Handler) http.Handler
- func (t *CTheme) Name() string
- func (t *CTheme) NewHtmlTemplate(enjin feature.Internals, name string, ctx context.Context) (tmpl *htmlTemplate.Template, err error)
- func (t *CTheme) NewTextTemplate(enjin feature.Internals, name string, ctx context.Context) (tmpl *textTemplate.Template, err error)
- func (t *CTheme) ReadStaticFile(path string) (data []byte, mime string, err error)
- func (t *CTheme) StaticFS() fs.FileSystem
- func (t *CTheme) ThemeFS() fs.FileSystem
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultCacheControl = "public, max-age=604800, no-transform, immutable"
)
View Source
var (
SemanticStylesOrder = []string{
"color",
"overlay",
"primary",
"secondary",
"accent",
"highlight",
"alternate",
"style",
"desktop",
"mobile",
"page",
"z",
"fa",
"fa-solid",
"fa-regular",
"fa-brands",
"icon",
"theme",
}
)
Functions ¶
Types ¶
type CTheme ¶
func (*CTheme) AddFormatProvider ¶
func (t *CTheme) AddFormatProvider(providers ...feature.PageFormatProvider)
func (*CTheme) FindLayout ¶
func (*CTheme) GetBlockThemeNames ¶
func (*CTheme) GetConfig ¶
func (t *CTheme) GetConfig() (config *feature.ThemeConfig)
func (*CTheme) Layouts ¶
func (t *CTheme) Layouts() feature.ThemeLayouts
func (*CTheme) ListArchetypes ¶ added in v0.5.0
func (*CTheme) ListFormats ¶
func (*CTheme) MakeArchetype ¶ added in v0.5.0
func (*CTheme) MatchFormat ¶
func (t *CTheme) MatchFormat(filename string) (format feature.PageFormat, match string)
func (*CTheme) NewHtmlTemplate ¶
func (*CTheme) NewTextTemplate ¶
func (*CTheme) ReadStaticFile ¶ added in v0.5.0
func (*CTheme) StaticFS ¶
func (t *CTheme) StaticFS() fs.FileSystem
func (*CTheme) ThemeFS ¶
func (t *CTheme) ThemeFS() fs.FileSystem
Source Files
¶
Click to show internal directories.
Click to hide internal directories.