kblomqvist / yasha

A command-line tool to render Jinja templates for great good
MIT License
246 stars 23 forks source link

Load extensions from YASHA_EXTENSIONS environment variable #27

Closed kblomqvist closed 7 years ago

kblomqvist commented 7 years ago

Sometimes you may like to have a common extensions over multiple templates, e.g. for the sake of custom parser.

export YASHA_EXTENSIONS=$HOME/.yasha/extensions.py
yasha -o output.txt template.j2