{% if cityName %} {% extends "template.html" %} {% block head %} {{ super() }} {% endblock %} {% block title %}Home{% endblock %} {% block bodyOnLoad %} doDate(); {% endblock %} {% block content %} {% with snippet=True %} {% include "snippet_time.html" %} {% endwith %} {% with snippet=True, cityName=cityName, weather=weather %} {% include "snippet_weather.html" %} {% endwith %} {% endblock %} {% else %} {% endif %}