kolypto / j2cli

Jinja2 Command-Line Tool, reworked

Home Page:http://pypi.python.org/pypi/j2cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Allow defining variables on command line

hubertgrzeskowiak opened this issue · comments

In many cases you'll have templates with just one or two variables. It's quite a hassle to create a data file each time.

commented

Just use environment variables:

$ echo "Value: {{ A }}" > /tmp/test.j2 
$ export A=123
$ j2 /tmp/test.j2
Value: 123