Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

register_output_renderer render function should be able to return a Response #953

Closed
simonw opened this issue Aug 28, 2020 · 1 comment
Closed

Comments

@simonw
Copy link
Owner

simonw commented Aug 28, 2020

That plugin hook was designed before Datasette had a documented Response class. It should optionally be allowed to return a Response in addition to the current custom dictionary.

@simonw
Copy link
Owner Author

simonw commented Aug 28, 2020

Documentation says that the old dictionary mechanism will be deprecated by 1.0:

It can also return a dictionary with the following keys. This format is **deprecated** as-of Datasette 0.49 and will be removed by Datasette 1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant