[enh] result rendering templates

This commit is contained in:
asciimoo 2013-10-22 23:32:52 +02:00
parent 9bd4459638
commit fd0a93dd7c
3 changed files with 15 additions and 5 deletions

View file

@ -9,10 +9,11 @@
</div>
<div id="results">
{% for result in results %}
<div class="result">
<h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3>
<p class="content"><span class="engines">{{ result.engine }}</span><br />{% if result.content %}{{ result.content|safe }}<br />{% endif %}<span class="url">{{ result.url }}</span></p>
</div>
{% if result['template'] %}
{% include 'result_templates/'+result['template'] %}
{% else %}
{% include 'result_templates/default.html' %}
{% endif %}
{% endfor %}
</div>
{% endblock %}