Learn Jinja
Fast, expressive Python template engine for HTML, config files and more
Jinja is the template engine behind Flask, Ansible, dbt, Salt and many static site generators. Templates mix text with expressions, filters, loops, inheritance and macros, and are compiled to Python code for speed. Learning it pays off wherever you generate HTML, configuration or code from data.
Before you start
How deep do you want to go?
1. EssentialsRead and write simple code, do the everyday basics
2. PracticalUse it productively at work, with the usual idioms
3. AdvancedThe less common features, performance and trade-offs
4. ExpertInternals and the edge cases experts know