{% extends "base.html" %} {% block title %}{{ request.path }} template context{% endblock %} {% block extra_head %} {% endblock %} {# The messages block would consume messages intended for the real page #} {% block messages %}{% endblock %} {% block content %}

{{ request.path }} template context

{% for section in debug_sections %}

{{ section.title }}

{% if section.intro %}

{{ section.intro }}

{% endif %} {% if section.unstable %}

Not a stable contract. {{ request.path }} is one of Datasette's debugging tools. The variables it passes to its template are documented here for reference, but a custom template that uses them may break in any future Datasette release.

{% endif %}
{% for variable in section.variables %}
{{ variable.name }} {%- if variable.kind == "function" -%} {% if variable.is_async %}async {% endif %}function {%- elif variable.documented_type and variable.documented_type != variable.actual_type -%} {{ variable.documented_type }} · currently {{ variable.actual_type }} {%- else -%} {{ variable.actual_type }} {%- endif -%} {{ variable.snippet }}
{% if variable.help %}

{{ variable.help }}

{% endif %} {% if variable.kind == "function" %}
{% if variable.is_async %}async {% endif %}{{ variable.name }}{{ variable.signature }}
{% if variable.doc %}
{{ variable.doc }}
{% endif %} {% else %} {% if variable.kind == "object" and variable.doc %}
{{ variable.doc }}
{% endif %} {% if variable.collapsed %}
Value ({{ "{:,}".format(variable.value_length) }} characters)
{{ variable.value }}
{% else %}
{{ variable.value }}
{% endif %} {% if variable.truncated %}

Showing the first {{ "{:,}".format(variable.value|length) }} characters. The JSON version has the full value.

{% endif %} {% if variable.members %}
{{ variable.members|length }} method{% if variable.members|length != 1 %}s{% endif %} and properties
    {% for member in variable.members %}
  • {% if member.is_async %}async {% endif %}{{ variable.name }}.{{ member.name }}{{ member.signature }} {% if member.doc %}
    {{ member.doc }}
    {% endif %}
  • {% endfor %}
{% if variable.members_truncated %}

Not every member is listed.

{% endif %}
{% endif %} {% endif %}
{% endfor %}
{% endfor %}
{% endblock %}