{% set escape=Lona.import('html.escape') %}
<h2>Template Response</h2>

<h3>Filters</h3>
<table border=1>
  <tr style="text-align: left; ">
    <th>Filter</th>
    <th>Output</th>
  </tr>
  <tr>
    <td>'foo'|custom_reverse</td>
    <td>{{'foo'|custom_reverse}}</td>
  </tr>
</table>

<h3>Variables</h3>
<table>
  <tr>
    <th style="text-align: left;">extra_context_variable</th>
    <td>{{ extra_context_variable }}</td>
  </tr>
  <tr>
    <th style="text-align: left;">test_variable</th>
    <td>{{ test_variable }}</td>
  </tr>
  {% for key, value in _variables.items() %}
    {% if key != '_variables' %}
      <tr>
        <th style="text-align: left;">{{ key }}</th>
        <td>{{ escape(repr(value)) }}</td>
      </tr>
    {% endif %}
  {% endfor %}
</table>
