Documentation
¶
Overview ¶
Package theme resolves and loads HTML theme templates. Lookup order is project-local ./themes/<name>.html first, then the user config directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Theme ¶
Theme is a parsed theme template ready to be executed by internal/render.
func Resolve ¶
Resolve finds a theme by name. searchProjectDir is typically the directory the document lives in; the function looks for <searchProjectDir>/themes/<name>.html first and falls back to <UserConfigDir>/mdoc/themes/<name>.html. An empty name yields a minimal default theme that just emits {{.Body}}.
Click to show internal directories.
Click to hide internal directories.