ASIMOV module for prompt templating using the Jinja templating language.
- Renders JSON inputs using the MiniJinja templating engine.
- Loads environment variables from
.env(aka dotenv) files. - Distributed as a standalone static binary with zero runtime dependencies.
- Rust 1.85+ (2024 edition) if building from source code
Installation with the ASIMOV CLI
asimov module install jinja -vpip install -U asimov-jinja-modulegem install asimov-jinja-modulenpm install -g asimov-jinja-modulecargo install asimov-jinja-moduleasimov-jinja-runner template.j2 < input.json > output.mdThis module requires no configuration.
asimov-jinja-runner: renders JSON from standard input to standard output
asimov-jinja-runner
Usage: asimov-jinja-runner [OPTIONS] [TEMPLATES]...
Arguments:
[TEMPLATES]... The `.j2` template files to render
Options:
-d, --debug Enable debugging output
--license Show license information
-v, --verbose... Enable verbose output (may be repeated for more verbosity)
-V, --version Print version information
-h, --help Print help
git clone https://github.com/asimov-modules/asimov-jinja-module.git