Documentation
¶
Overview ¶
Package variables expands template variables inside Markdown content. Variables such as {{ book.title }} and {{ book.author }} are replaced before parsing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Expand ¶
func Expand(source []byte, cfg *config.BookConfig) []byte
Expand replaces template variables in Markdown source using config values.
func ExpandString ¶
func ExpandString(source string, cfg *config.BookConfig) string
ExpandString is the string wrapper for Expand.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.