theme

package
v0.0.0-...-224e580 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TemplateFs embed.FS

Functions

func AddTheme

func AddTheme(name string, fn func(handle *wp.Handle))

func BuildTemplate

func BuildTemplate() *multipTemplate.MultipleFsTemplate

func DelTheme

func DelTheme(name string)

func FuncMap

func FuncMap() template.FuncMap

func GetCurrentTheme

func GetCurrentTheme() string

func GetMultipleTemplate

func GetMultipleTemplate() *multipTemplate.MultipleFsTemplate

func GetTemplate

func GetTemplate(name string) (*template.Template, bool)

func GetTheme

func GetTheme(name string) (func(*wp.Handle), bool)

func Hook

func Hook(themeName string, h *wp.Handle)

func InitTheme

func InitTheme()

func IsTemplateDirExists

func IsTemplateDirExists(tml string) bool

func IsTemplateExists

func IsTemplateExists(tml string) bool

func IsThemeHookFuncExist

func IsThemeHookFuncExist(name string) bool

func SetTemplate

func SetTemplate(name string, val *template.Template)

Types

This section is empty.

Directories

Path Synopsis
wp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL