Skip to content

macros

Render Jinja variables and Python macros in Markdown. Native support was added in Zensical 0.0.40.

Reuse a product name or version across pages; generate repeated links with a helper.

Try it

Open the macros example.

Variable

The trip name is supplied by main.py and rendered into the page.

Python macro

The greeting is generated by a Python function called from Markdown.

Source and configuration

The configuration and example Markdown are available in the repository. Other files in that directory supply the example’s fixtures.

Zensical compatibility and settings · Plugin documentation