mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Tests should now pass for facets branch
This commit is contained in:
parent
63e52c0936
commit
f6cdca3f6e
4 changed files with 23 additions and 8 deletions
|
|
@ -551,3 +551,12 @@ The ``template``, ``database`` and ``table`` options can be used to return diffe
|
|||
The ``datasette`` instance is provided primarily so that you can consult any plugin configuration options that may have been set, using the ``datasette.plugin_config(plugin_name)`` method documented above.
|
||||
|
||||
The string that you return from this function will be treated as "safe" for inclusion in a ``<script>`` block directly in the page, so it is up to you to apply any necessary escaping.
|
||||
|
||||
.. _plugin_hook_register_facet_classes:
|
||||
|
||||
register_facet_classes()
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Return a list of additional ``Facet`` subclasses that can be used to suggest and render facets.
|
||||
|
||||
For examples of how this can be used, see `datasette/facets.py <https://github.com/simonw/datasette/blob/master/datasette/facets.py>`__.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue