datasette/docs
Russ Garrett cf406c0754 New plugin hook: register_output_renderer hook (#441)
Thanks @russss!

* Add register_output_renderer hook

This changeset refactors out the JSON renderer and then adds a hook and
dispatcher system to allow custom output renderers to be registered.

The CSV output renderer is untouched because supporting streaming
renderers through this system would be significantly more complex, and
probably not worthwhile.

We can't simply allow hooks to be called at request time because we need
a list of supported file extensions when the request is being routed in
order to resolve ambiguous database/table names. So, renderers need to
be registered at startup.

I've tried to make this API independent of Sanic's request/response
objects so that this can remain stable during the switch to ASGI. I'm
using dictionaries to keep it simple and to make adding additional
options in the future easy.

Fixes #440
2019-05-01 16:01:56 -07:00
..
.gitignore Added initial docs, including a changelog 2017-11-16 07:11:00 -08:00
advanced_export.png Export option: _shape=array&_nl=on for newline-delimited JSON 2019-01-27 17:40:23 -08:00
auto-build.sh Added --load-extension argument to datasette serve 2017-11-16 08:48:49 -08:00
changelog.rst Datasette 0.27 2019-01-31 19:47:05 -08:00
conf.py Update conf.py 2018-05-12 09:08:11 -03:00
config.rst URL hashing is now off by default - closes #418 2019-03-17 15:55:04 -07:00
contributing.rst Added some guidelines 2019-04-20 11:32:40 -07:00
csv_export.rst Renamed 'stream all records' to 'stream all rows', refs #266 2018-06-18 07:25:44 -07:00
custom_templates.rst Tiny typo in customization docs (#390) 2018-12-16 13:32:55 -08:00
datasette-package-help.txt about and about_url metadata options 2019-03-14 20:54:42 -07:00
datasette-publish-heroku-help.txt about and about_url metadata options 2019-03-14 20:54:42 -07:00
datasette-publish-now-help.txt about and about_url metadata options 2019-03-14 20:54:42 -07:00
datasette-serve-help.txt 'datasette serve -i immutable.db' option, refs #419 2019-03-17 16:25:15 -07:00
ecosystem.rst Added datasette-jellyfish 2019-03-09 10:43:12 -08:00
facets.png Added screenshots to facets and full_text_search docs, refs #255 2018-05-16 08:27:24 -07:00
facets.rst Updated default facet limits in docs 2018-05-18 08:50:37 -07:00
full_text_search.png Added screenshots to facets and full_text_search docs, refs #255 2018-05-16 08:27:24 -07:00
full_text_search.rst ?_fts_table= and ?_fts_pk= arguments, closes #428 2019-04-11 21:21:17 -07:00
getting_started.rst Docs for datasette publish and package, closes #337 2018-07-10 19:05:46 -07:00
index.rst Added documentation on the Datasette Ecosystem 2019-01-31 19:36:07 -08:00
installation.rst Link to dev environment instructions from installation guide 2018-10-27 10:34:31 -07:00
introspection.rst expand_foreign_keys() no longer uses inspect, refs #420 2019-04-06 19:56:07 -07:00
json_api.rst Note that trace data format is very likely to change, refs #435 2019-04-21 10:53:28 -07:00
Makefile Added documentation on the Datasette Ecosystem 2019-01-31 19:36:07 -08:00
metadata.rst Releasing Datasette 0.25 2018-09-19 19:48:12 +02:00
pages.rst Docs for IndexView, TableView, RowView, closes #299 2018-07-27 21:21:42 -07:00
plugins.rst New plugin hook: register_output_renderer hook (#441) 2019-05-01 16:01:56 -07:00
publish.rst publish_subcommand hook + default plugins mechanism, used for publish heroku/now (#349) 2018-07-25 22:15:59 -07:00
spatialite.rst Update spatialite.rst (#413) 2019-03-14 22:06:45 -07:00
sql_queries.rst Fix small doc typo - thanks @jaywgraves (#365) 2018-09-19 18:15:42 +01:00