variables

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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