Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Variables = map[string]any{}
Functions ¶
func HtmlTemplate ¶
HtmlTemplate returns the corresponding html string from a supplied object and recipe template.
It also returns any errors encountered.
func Init ¶
func Init()
Init initializes the T struct. It always starts by unmarshalling the "default" theme, then checks the user's supplied theme.
It also initializes the Variables map with the corresponding colors and render functions.
Types ¶
type Model ¶
type Model struct { Title struct { Up string `yaml:"up"` Left string `yaml:"left"` Right string `yaml:"right"` Down string `yaml:"down"` Centered bool `yaml:"centered"` } `yaml:"title"` Check struct { Info string `yaml:"info"` Name struct { Failed string `yaml:"failed"` Ok string `yaml:"ok"` } `yaml:"title"` } `yaml:"check"` Checkbox struct { Failed string `yaml:"failed"` Ok string `yaml:"ok"` } `yaml:"checkbox"` File struct { Call string `yaml:"call"` Indent string `yaml:"indent"` Pad string `yaml:"pad"` } `yaml:"file"` Pair string `yaml:"pair"` Question string `yaml:"question"` Table string `yaml:"table"` }
type Theme ¶
type Theme struct { Statistics string `yaml:"statistics"` Emojis map[string]string `yaml:"emojis"` Css string `yaml:"css"` Icons map[string]map[string]string `yaml:"icons"` HTML *Model `yaml:"html"` Markdown *Model `yaml:"markdown"` Obsidian string `yaml:"obsidian"` Render *Model `yaml:"render"` }
var T *Theme
Click to show internal directories.
Click to hide internal directories.