Простой пример cgi-скрипта c Jinja-шаблоном
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test Jinja</title>
</head>
<body>
{% include '_nav.htm' %}
<h3>Test 2 Jinja</h3>
{%- for item in range(5) %}
<p>Hello {{ user }}!</p>
{%- endfor %}
{% include '_footer.htm' %}
</body>
</html><nav>
<a href="/home">{{ home }}</a>
<a href="/blog">Blog</a>
<a href="/contact">Contact</a>
</nav>Last updated