From 0fc1f85e7b01dc5baccfe5aac39abb5f68d9857e Mon Sep 17 00:00:00 2001 From: Mark Gibbs Date: Sun, 18 Nov 2018 07:57:51 -0800 Subject: [PATCH 1/2] Added template block for cookie and terms-and-conditions storage --- demo/demo/templates/base.html | 1 + 1 file changed, 1 insertion(+) diff --git a/demo/demo/templates/base.html b/demo/demo/templates/base.html index cba3e48e..7277cf12 100644 --- a/demo/demo/templates/base.html +++ b/demo/demo/templates/base.html @@ -40,6 +40,7 @@
+ {% block main_top%}{% endblock%}
{% block content%}{% endblock%}
From a4eaa9195db059b8149053c190eab501da406988 Mon Sep 17 00:00:00 2001 From: Mark Gibbs Date: Sat, 1 Dec 2018 06:21:33 -0800 Subject: [PATCH 2/2] More minor doc tweaks --- docs/template_tags.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/template_tags.rst b/docs/template_tags.rst index f9474965..37ab2126 100644 --- a/docs/template_tags.rst +++ b/docs/template_tags.rst @@ -77,8 +77,8 @@ The ``plotly_header`` and ``plotly_footer`` template tags --------------------------------------------------------- ``DjangoDash`` allows you to inject directly the html generated by ``Dash`` in -the DOM of the page without wrapping it in an iframe. To include your app CSS and JS, you have -to include two tags in your template, namely ``plotly_header`` and ``plotly_footer``, as +the DOM of the page without wrapping it in an iframe. To include the app CSS and JS, two tags +should be included in the template, namely ``plotly_header`` and ``plotly_footer``, as follows: .. code-block:: jinja @@ -103,7 +103,8 @@ follows: This part in mandatory if you want to use the :ref:`plotly_direct ` tag, and these two tags can safely be included -on any page that has loaded the ``plotly_dash`` template tag library with minimal overhead. Neither tag has +on any page that has loaded the ``plotly_dash`` template tag library with minimal overhead, making them +suitable for inclusion in a base template. Neither tag has any arguments. Note that if you are using any functionality that needs the use of these tags, then the associated middleware