datasette/tests/plugins
Claude cf6357cf93
path and full_path arguments for output renderers, closes #1179
Output renderer render() and can_render() callbacks can now accept
path and full_path arguments - the path to the HTML version of the
page without the .extension, with and without the query string.

Also fixed path_with_format() so it replaces the extension the current
request used instead of falling back to ?_format=, which Datasette no
longer reads. This broke links generated by renderers such as
datasette-export-notebook, and the URLs returned by ?_extra=renderers
on .json pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TzcVp1Cq5yCRW81GiN88JX
2026-10-05 21:44:50 +00:00
..
messages_output_renderer.py Flash messages mechanism, closes #790 2020-06-02 14:12:18 -07:00
my_plugin.py Upgrade to ruff>=0.16.0 (#2857) 2026-07-25 15:47:08 -07:00
my_plugin_2.py Upgrade to ruff>=0.16.0 (#2857) 2026-07-25 15:47:08 -07:00
register_output_renderer.py path and full_path arguments for output renderers, closes #1179 2026-10-05 21:44:50 +00:00
sleep_sql_function.py Upgrade to ruff>=0.16.0 (#2857) 2026-07-25 15:47:08 -07:00
view_name.py Refactored test plugins into tests/plugins, closes #775 2020-05-27 17:57:25 -07:00