ASIMOV Jinja Module
ASIMOV module for prompt templating using the Jinja templating language.
✨ Features
- 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.
🛠️ Prerequisites
- Rust 1.85+ (2024 edition) if building from source code
⬇️ Installation
Installation with the ASIMOV CLI
asimov module install jinja -vInstallation from PyPI
pip install -U asimov-jinja-moduleInstallation from RubyGems
gem install asimov-jinja-moduleInstallation from NPM
npm install -g asimov-jinja-moduleInstallation from Source Code
cargo install asimov-jinja-module👉 Examples
JSON-to-Markdown Rendering
asimov-jinja-runner template.j2 < input.json > output.md⚙ Configuration
This module requires no configuration.
📚 Reference
Installed Binaries
-
asimov-jinja-runner: renders JSON from standard input to standard output
asimov-jinja-runner
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
👨💻 Development
git clone https://github.com/asimov-modules/asimov-jinja-module.git