jinja2stdoutdeprecated

jinja2 cli

Usage no npm install needed!

<script type="module">
  import jinja2stdout from 'https://cdn.skypack.dev/jinja2stdout';
</script>

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

Feedback GitHub issues Join the chat at https://gitter.im/russianidiot/jinja2stdout.py.cli GitHub followers


cli packages russianidiot.github.io/cli/

repos list russianidiot.github.io

README.md generated with readmemako.py (python+mako templates) and .README dotfiles