README
jinja2 cli
Install
[sudo] pip install jinja2stdout
Features
- ~/.jinja/ default templates searchpath or SEARCHPATH enviroment variable
- enviroment variables
- config.py files in template directory
Usage
usage: python -m jinja2stdout path
>>> from jinja2stdout import jinja2stdout
>>> jinja2stdout(path)
Example
# ~/.jinja/ as searchpath
$ python -m jinja2stdout path/to/template.jinja > output.html
# SEARCHPATH enviroment variable
$ export SEARCHPATH="path/to/templates"
$ python -m jinja2stdout path/to/template.jinja
# envivroment variables
$ export var1='value1'
$ export var2='value2'
$ python -m jinja2stdout path/to/template.jinja
Links
- Jinja2 Documentation - jinja.pocoo.org/docs/dev/
cli packages russianidiot.github.io/cli/
repos list russianidiot.github.io
README.md generated with readmemako.py (python+mako templates) and .README dotfiles