Practical Jinja2: automation, reporting and documents
Jinja2 is one of the most popular templating engine in Python with a huge scope of applications. It is used by Ansible to automate your infrastructure or by web development frameworks, such as Flask. But it still can do more for us. As it turns out, the ability to automate the creation of parametrized text files can solve a lot of our smaller daily chores:
- create a shell script to do repeated tasks,
- create a report based on some data file or parametrized snippets for documents.
In this session we’ll create a simple Python program which can merge Jinja templates with some data provided in JSON or YAML format.


