mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
extra_template_vars plugin hook (#542)
* extra_template_vars plugin hook Closes #541 * Workaround for cwd bug Based on https://github.com/pytest-dev/pytest/issues/1235#issuecomment-175295691
This commit is contained in:
parent
a18e0964ec
commit
fcfcae21e6
9 changed files with 186 additions and 19 deletions
8
tests/test_templates/show_json.html
Normal file
8
tests/test_templates/show_json.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{{ super() }}
|
||||
Test data for extra_template_vars:
|
||||
<pre class="extra_template_vars">{{ extra_template_vars|safe }}</pre>
|
||||
<pre class="extra_template_vars_from_awaitable">{{ extra_template_vars_from_awaitable|safe }}</pre>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue