{% extends "_base.html" %} {% block title %} {% if term != "" %} {{ term }} {% else %} Start a new Search {% endif %} {% endblock %} {% block searchValue %}{{ term }}{% endblock %} {% block content %} {% if matches %} {# Result rendering #} Matched {{ matches.__len__() }} Book{% if matches.__len__() > 1 %}s{% endif %} {% for docnum, matches in matches.items() %}
book: {{ docnum }} {% for match in matches %}
{{ match }}
{% endfor %}
match in {{ docnum }} {% endfor %} {% endif %} {% endblock %}