{% with node.view.enable_ajax_api as ajax %} {% if ajax %}{% endif %} {% for search in searches %}

{{ search }}

{% if not ajax %}
{% for result in search.results %} {{ result }} {% endfor %}
{% if search.has_more_results and search.more_results_url %} {% endif %} {% endif %}
{% endfor %} {% endwith %}