theme

package
v0.0.0-...-1f40810 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TemplateFs embed.FS

Functions

func AddThemeHookFunc

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

func BuildTemplate

func BuildTemplate() *multipTemplate.MultipleFsTemplate

func FuncMap

func FuncMap() template.FuncMap

func GetCurrentTemplateName

func GetCurrentTemplateName() string

func GetMultipleTemplate

func GetMultipleTemplate() *multipTemplate.MultipleFsTemplate

func GetTemplate

func GetTemplate(name string) (*template.Template, 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