{% with title="Genre" selected=facets.selected.genre %}
{% include "movies/includes/filter_heading.html" with title=title %}
{% include "movies/includes/filter_all.html" with param="genre" %}
{% for cat in facets.categories.genres %}
{{ cat }}
{% endfor %}
{% endwith %}
{% with title="Director" selected=facets.selected.director %}
{% include "movies/includes/filter_heading.html" with title=title %}
{% include "movies/includes/filter_all.html" with param="director" %}
{% for cat in facets.categories.directors %}
{{ cat }}
{% endfor %}
{% endwith %}
{% with title="Actor" selected=facets.selected.actor %}
{% include "movies/includes/filter_heading.html" with title=title %}
{% include "movies/includes/filter_all.html" with param="actor" %}
{% for cat in facets.categories.actors %}
{{ cat }}
{% endfor %}
{% endwith %}
{% with title="Rating" selected=facets.selected.rating %}
{% include "movies/includes/filter_heading.html" with title=title %}
{% include "movies/includes/filter_all.html" with param="rating" %}
{% for r_val, r_display in facets.categories.ratings %}
{{ r_display }}
{% endfor %}