{% for department, courses in course_map.items %}
{% if department == '' %}
{% endfor %}
Not Listed Under a Department
{% else %}{{ department }}
{% endif %} {% for c in courses %}{{ c.code }} {{ c.name }}
{% endfor %}