def test(request):
testo = ["a","b"]
titolo = 'test'
variabile = 'one'
return render_to_response('vini.html',{'testo':testo,'titolo':titolo, 'testo':testo,'variabile':variabile,})
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{% block title %}{{titolo}}{% endblock %}</title>
</head>
<body>
<div id="titoli">
{% block titoli %} {% endblock %}
</div>
<div id="navcontainer">
<ul id="navlist">
{% if {{variabile}} == "one" %}
<li id="active"><a href="/mostro_prima" id="current">History</a></li>
<li><a href="/vini">Wines</a></li>
<li><a href="#">Foods</a></li>
{% elif {{variabile}} == "two" %}
<li><a href="/mostro_prima">History</a></li>
<li id="active"><a href="/vini" id="current">Wines</a></li>
<li><a href="#">Foods</a></li>
{% else %}
<li><a href="/mostro_prima">History</a></li>
<li><a href="/vini">Wines</a></li>
<li id="active"><a href="#" id="current">Foods</a></li>
{% endif %}
</ul>
</div>
<div id="main">
{% block main %}{% for n in testo %}<br/>{{n}}{% endfor %}
<br/><br/><br/>
Contact : <br/>
Tel: +xxxxxxxxxx </br>
Mobile: +xxxxxxxxx2<br/>
Email : <a href="xxxxxxxxxxxxxxxxxxxxxxx"> info@xxxxxxxxxxxxxxxxxm</a>
{% endblock %}
</div>
<div id= "immagini">
</div>
</body>
</html>