-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support for additional template variables
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 <[email protected]>
- Loading branch information
Showing
4 changed files
with
190 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters