You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user should be able to inject context variables into the templates. Maybe a mix of configuration files (/etc, /home/user (XDG compliant), and current directory locations), environment variables and command-line options.
The text was updated successfully, but these errors were encountered:
Additional template variables for the Jinja template can be passed via CLI or can be defined in a configuration file.
To pass variables via CLI, the option `-j KEY=VALUE` or `--jinja-context KEY=VALUE` can be given multiple times.
To define variables in a configuration file, the variables can be defined in a "[jinja_context]" table.
```toml
[jinja_context]
KEY = "VALUE"
```
All values are accessible in the template through the `jinja_context` (dict) variable.
Issue-17: #17
PR-73: #73
Co-authored-by: Timothée Mazzucotelli <dev@pawamoy.fr>
The user should be able to inject context variables into the templates. Maybe a mix of configuration files (
/etc
,/home/user
(XDG compliant), and current directory locations), environment variables and command-line options.The text was updated successfully, but these errors were encountered: