{# query_result.html #} {% extends "base.html" %} {% comment %} template parameters: sql_highlight_css: str table_html: str ... and as per query_nav.html page_nav_results.html {% endcomment %} {% block extrahead %} {% endblock %} {% block content %} {% include "query_nav.html" %}

Results

{% include "page_nav_results.html" with page=page %} {% include "expand_collapse_buttons.html" %} {{ table_html|safe }} {% include "page_nav_results.html" with page=page %}

SQL

{{ sql|safe }} {% endblock %}