Documentation
¶
Overview ¶
Package themedefault is the official default theme module: the embedded layouts, static assets, and template funcs the site-ssr engine consumes.
Index ¶
- Constants
- func Files() fs.FS
- type Module
- func (m *Module) AdminManifest() kernel.AdminExtensionManifest
- func (m *Module) Init(_ kernel.Kernel) error
- func (m *Module) Name() string
- func (m *Module) Optional() []string
- func (m *Module) Requires() []string
- func (m *Module) Shutdown() error
- func (m *Module) ThemeFiles() fs.FS
- func (m *Module) ThemeFuncs() template.FuncMap
- func (m *Module) Version() string
Constants ¶
const Name = "theme-default"
Name is the registry key for this module.
const Version = "0.1.0"
Version is the module version reported via Module.Version.
Variables ¶
This section is empty.
Functions ¶
func Files ¶
Files returns the default theme artifact filesystem, rooted at the directories above (paths like "pages/post.gohtml" and "static/base.css"). Core installs it once at startup via the template package's setter; without it (a custom edition omitting this module) only THEME_DIR files resolve.
Types ¶
type Module ¶
type Module struct{}
Module is the theme-default kernel module.
func New ¶
func New() *Module
New builds the module. The theme artifact is static; construction takes no options.
func (*Module) AdminManifest ¶
func (m *Module) AdminManifest() kernel.AdminExtensionManifest
AdminManifest declares this module's admin-shell extensions. A theme ships no admin UI of its own, so the manifest is empty.
func (*Module) Requires ¶
Requires lists hard dependencies. The theme is a leaf artifact consumed by the site-ssr engine, so nothing is required.
func (*Module) ThemeFiles ¶
ThemeFiles returns the default theme artifact filesystem (layouts under pages/, static assets under static/). The site-ssr engine resolves THEME_DIR overrides over it.
func (*Module) ThemeFuncs ¶
ThemeFuncs returns the template funcs this theme contributes. The default theme adds none beyond the engine's own (urlpath, t, assetURL, formatDate, formatDateTime) — the empty map keeps the provider contract explicit.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package admin owns this module's admin-shell manifest: the declarative UI the single admin SPA renders for the default theme.
|
Package admin owns this module's admin-shell manifest: the declarative UI the single admin SPA renders for the default theme. |
|
Package testutil provides the kernel fixture module tests run against.
|
Package testutil provides the kernel fixture module tests run against. |