{% extends "base.html" %} {% block title %}"{{ query }}" - XYZ Store Search{% endblock %} {% block content %} {% if query in [none, ""] %}

Search

To start a search, type a query in the search bar (in the navigation bar) and press enter.

{% else %}

Search results for "{{ query|safe }}"

{% if search_results %}
{% for product in search_results %}
{{ product.product_name }}

${{ product.price }}

View
{% endfor %}
{% else %}

No products match your query.

{% endif %} {% endif %} {% endblock %}