lua-env is an extension for Quarto to provide access to Lua objects as metadata, and optionally to export them as JSON.
quarto add mcanouil/quarto-lua-env@2.1.0This will install the extension under the _extensions subdirectory.
If you're using version control, you will want to check in this directory.
Set enabled: false under extensions.lua-env to switch the extension off.
Do this in the front matter of one page, or in _quarto.yml for a whole project.
extensions:
lua-env:
enabled: falseA page with the switch off collects no Lua metadata and writes no JSON file.
Each {{< lua-env >}} shortcode on that page prints nothing.
The default is true.
The full documentation lives at https://m.canouil.dev/quarto-lua-env/: every path the extension publishes, the JSON export and its filters, and values printed live from the render.
example.qmd is a short, standalone starting point you can copy.
MIT.