Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 576 Bytes

File metadata and controls

15 lines (10 loc) · 576 Bytes

Jinja2 Example in Python

This is a quick example of using Jinja2 (without Flask).

  • The raw data is in a tab-delimited file in the ./data directory.
  • The Jinja template is in the ./templates directory.
  • The script that combines them is process_template.py.
  • If you want to generate different random data, edit the file in the ./data_generator directory and run it to output a new data file.

Info

  • Make a Python 3 virtualenv.
  • Install the requirements: pip install -r requirements.txt

Feel free to fork and make pull requests if something isn't right.