Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mshenfield/jinjafy

Render a Jinja2 template from the commandline, writing it to stdout.
https://github.com/mshenfield/jinjafy

Last synced: about 13 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

=======
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 `_