asimov-jinja-module 0.1.5

ASIMOV module for prompt templating using the Jinja templating language.
Documentation

ASIMOV Jinja Module

License Package on Crates.io Package on PyPI Package on RubyGems Package on NPM Documentation

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 -v

Installation from PyPI

pip install -U asimov-jinja-module

Installation from RubyGems

gem install asimov-jinja-module

Installation from NPM

npm install -g asimov-jinja-module

Installation 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

Share on X Share on Reddit Share on Hacker News Share on Facebook Share on LinkedIn