Async support for prepare_jinja2_environment, closes #1809

This commit is contained in:
Simon Willison 2022-09-16 20:38:15 -07:00
commit ddc999ad12
10 changed files with 76 additions and 9 deletions

View file

@ -88,6 +88,8 @@ You can now use this filter in your custom templates like so::
Table name: {{ table|uppercase }}
This function can return an awaitable function if it needs to run any async code.
Examples: `datasette-edit-templates <https://datasette.io/plugins/datasette-edit-templates>`_
.. _plugin_hook_extra_template_vars: