{% if not search_results %}
{{ path|replace(working_dir, '') }}      Save
{% if mime_type.startswith('text/') or mime_type == 'application/javascript' %} {% if not md_content and html_content %}
{{ html_content|safe }}
{% else %}
{% endif %} {% elif mime_type and mime_type.startswith('image/') %}
{{ path }}
{% else %}
{{ html_content|e }}
{% endif %}

{{ mime_type }}

{% else %}
Results for {{ query|e }}

{{ stats }}

{% for result in search_results %} {{ result.file }}
    {% for match in result.matches %}
  • {{match.snippet}}
  • {% endfor %}
{% endfor %} {% endif %}