Skip to content

Commit c2cba96

Browse files
delsimGibbsConsulting
authored andcommitted
Minor template enhancement (#79)
* Added template block for cookie and terms-and-conditions storage * More minor doc tweaks
1 parent cfc7f06 commit c2cba96

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

demo/demo/templates/base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
</nav>
4141
</header>
4242
<main>
43+
{% block main_top%}{% endblock%}
4344
<div class="container">
4445
{% block content%}{% endblock%}
4546
</div>

docs/template_tags.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ The ``plotly_header`` and ``plotly_footer`` template tags
7777
---------------------------------------------------------
7878

7979
``DjangoDash`` allows you to inject directly the html generated by ``Dash`` in
80-
the DOM of the page without wrapping it in an iframe. To include your app CSS and JS, you have
81-
to include two tags in your template, namely ``plotly_header`` and ``plotly_footer``, as
80+
the DOM of the page without wrapping it in an iframe. To include the app CSS and JS, two tags
81+
should be included in the template, namely ``plotly_header`` and ``plotly_footer``, as
8282
follows:
8383

8484
.. code-block:: jinja
@@ -103,7 +103,8 @@ follows:
103103
</html>
104104
105105
This part in mandatory if you want to use the :ref:`plotly_direct <plotly_direct>` tag, and these two tags can safely be included
106-
on any page that has loaded the ``plotly_dash`` template tag library with minimal overhead. Neither tag has
106+
on any page that has loaded the ``plotly_dash`` template tag library with minimal overhead, making them
107+
suitable for inclusion in a base template. Neither tag has
107108
any arguments.
108109

109110
Note that if you are using any functionality that needs the use of these tags, then the associated middleware

0 commit comments

Comments
 (0)