mdbook-tera
Tera preprocessor for mdBook
API documentation hosted on docs.rs.
)
Usage
First install the tera preprocessor.
Then in your book.toml file, add the tera preprocessor as below.
Default Configuration
# Default options, load a TOML context file from ./src/context.toml
[]
JSON Configuration
[]
= "mdbook-tera --json ./src/context.json"
Usage in Markdown files
See example-book for a basic usage.
Simply define your values in the context.toml file, and use them in tera statements.
You can access the book context with the key ctx.
{{ my_value }}