diff --git a/datasette/static/datasette-manager.js b/datasette/static/datasette-manager.js index d1780f9507..df93f13504 100644 --- a/datasette/static/datasette-manager.js +++ b/datasette/static/datasette-manager.js @@ -32,7 +32,7 @@ const DOM_SELECTORS = { * For now, manually synced with datasette/version.py */ const datasetteManager = { - VERSION: '1.0a2', + VERSION: window.datasetteVersion, // TODO: Should order of registration matter more? diff --git a/datasette/templates/base.html b/datasette/templates/base.html index 316b6a0e12..f557f0eb93 100644 --- a/datasette/templates/base.html +++ b/datasette/templates/base.html @@ -7,6 +7,7 @@ {% for url in extra_css_urls %} {% endfor %} + {% for url in extra_js_urls %} diff --git a/demos/plugins/example_js_manager_plugins.py b/demos/plugins/static/example_js_manager_plugins.py similarity index 84% rename from demos/plugins/example_js_manager_plugins.py rename to demos/plugins/static/example_js_manager_plugins.py index 7bdb9f3f6b..313f37dae1 100644 --- a/demos/plugins/example_js_manager_plugins.py +++ b/demos/plugins/static/example_js_manager_plugins.py @@ -2,6 +2,8 @@ # Test command: # datasette fixtures.db --plugins-dir=demos/plugins/ +# datasette fixtures.db \ --plugins-dir=demos/plugins/ +# \ --static static:demos/plugins/static # Create a set with view names that qualify for this JS, since plugins won't do anything on other pages # Same pattern as in Nteract data explorer diff --git a/datasette/demos/plugins/static/table-example-plugins.js b/demos/plugins/static/table-example-plugins.js similarity index 100% rename from datasette/demos/plugins/static/table-example-plugins.js rename to demos/plugins/static/table-example-plugins.js