{% extends "base.html" %} {% block title %}{{query}}{% endblock %} {% block txtlist %} {% endblock %} {% block results %}

The results for the query "{{query}}" are:

{% if results == {} %}
That word is not used in any of the files.
{% else %} {% for _, document in results.items() %} {% for line in document.html %}
{% set name = document.filename.replace('.txt', '') %}

{{ document.name }}

{{ line }}
{% endfor %} {% endfor %} {% endif %}
{% if analytics %}
{% if analytics.stemmer %}

Similar but not the same to {{ query }}:

{% for word in analytics.stemmer %} {{ word }} {% endfor%}
{% else %}
None
{% endif%}
{% endif%} {% endblock %}