mshenfield / jinjafy

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 Star

Development

This project uses Pipenv to isolate development environments. To test:

$ pipenv shell
pytest

License

MIT

About

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

License:MIT License


Languages

Language:Python 100.0%