From fd0a93dd7ce6b701dfb5fe48d3196aee23d19621 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Tue, 22 Oct 2013 23:32:52 +0200 Subject: [enh] result rendering templates --- searx/templates/results.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'searx/templates/results.html') diff --git a/searx/templates/results.html b/searx/templates/results.html index 6f45e8bcd..fc935c37d 100644 --- a/searx/templates/results.html +++ b/searx/templates/results.html @@ -9,10 +9,11 @@
{% for result in results %} -
-

{{ result.title|safe }}

-

{{ result.engine }}
{% if result.content %}{{ result.content|safe }}
{% endif %}{{ result.url }}

-
+ {% if result['template'] %} + {% include 'result_templates/'+result['template'] %} + {% else %} + {% include 'result_templates/default.html' %} + {% endif %} {% endfor %}
{% endblock %} -- cgit v1.2.3