mirror of
https://github.com/simonw/datasette.git
synced 2026-10-22 17:27:01 +02:00
Merge cf6357cf93 into d0836ddedc
This commit is contained in:
commit
dec829d7ae
10 changed files with 180 additions and 7 deletions
|
|
@ -753,7 +753,7 @@ The available table extras are listed below.
|
|||
.. code-block:: json
|
||||
|
||||
{
|
||||
"json": "/fixtures/facetable.json?_extra=renderers&_format=json&_labels=on"
|
||||
"json": "/fixtures/facetable.json?_extra=renderers&_labels=on"
|
||||
}
|
||||
|
||||
``custom_table_templates``
|
||||
|
|
|
|||
|
|
@ -625,6 +625,12 @@ When a request is received, the ``"render"`` callback function is called with ze
|
|||
``request`` - :ref:`internals_request`
|
||||
The current HTTP request.
|
||||
|
||||
``path`` - string
|
||||
The path to the HTML version of this page, without the ``.extension`` - for example ``/fixtures/facetable`` for a request to ``/fixtures/facetable.test``. This includes the :ref:`setting_base_url` prefix if one is configured.
|
||||
|
||||
``full_path`` - string
|
||||
The same as ``path`` but with the query string included, if there was one - for example ``/fixtures/facetable?_sort=pk``. Use ``datasette.absolute_url(request, full_path)`` to turn this into a full URL.
|
||||
|
||||
``error`` - string or None
|
||||
If an error occurred this string will contain the error message.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue