Skip to content

Commit

Permalink
Minor template enhancement (#79)
Browse files Browse the repository at this point in the history
* Added template block for cookie and terms-and-conditions storage

* More minor doc tweaks
  • Loading branch information
delsim authored and GibbsConsulting committed Dec 1, 2018
1 parent cfc7f06 commit c2cba96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions demo/demo/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
</nav>
</header>
<main>
{% block main_top%}{% endblock%}
<div class="container">
{% block content%}{% endblock%}
</div>
Expand Down
7 changes: 4 additions & 3 deletions docs/template_tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -103,7 +103,8 @@ follows:
</html>
This part in mandatory if you want to use the :ref:`plotly_direct <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
Expand Down

0 comments on commit c2cba96

Please sign in to comment.