We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Suggested by @andrewhayward on Twitter: https://twitter.com/arhayward/status/986015118965268480?s=21
Have you considered a basic abstraction on top of that, for standard hook features?
@sql_function random_integer(a,b): return random.randint(a,b) @template_filter uppercase(str): return str.upper()
Maybe from datasette.plugins import template_filter?
from datasette.plugins import template_filter
Would have to work out how to get this to play well with pluggy
The text was updated successfully, but these errors were encountered:
This could also help workaround the current predicament that a single plugin can only define one prepare_connection hook.
Sorry, something went wrong.
I'm OK with not implementing this - I've got used to the existing mechanism, and it doesn't frustrate me enough to work on this more.
No branches or pull requests
Suggested by @andrewhayward on Twitter: https://twitter.com/arhayward/status/986015118965268480?s=21
Maybe
from datasette.plugins import template_filter
?Would have to work out how to get this to play well with pluggy
The text was updated successfully, but these errors were encountered: