jinjafy

Render a Jinja2 template from the commandline, writing it to stdout


Keywords
jinja2, cli
License
MIT
Install
pip install jinjafy==0.1.0

Documentation

jinjafy

Render a Jinja2 template from the commandline, writing it to stdout.

Install

Run pip install jinjafy to install the jinjafy command line tool.

Usage

$ jinjafy --help
usage: jinjafy [-h] [-v] filepath [key=value [key=value ...]]
...

$ cat ru.j2
Ben De La {{creme}}, {{allstar}}

$ jinjafy ru.j2 creme=Christ allstar="All Star"
Ben De La Christ, All Start

Development

This project uses [Pipenv](docs.pipenv.org) to isolate development environments. To test:

$ pipenv shell
pytest

License

MIT