Skip to content

Commit c71e864

Browse files
V0.5.1 (#22)
* fix template tag name * Revert "fix template tag name" This reverts commit 04b3040. * DOC: update plotly_item to plotly_app * Bump version to 0.5.1 Bump version to 0.5.1
1 parent 09c56ab commit c71e864

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ templates:
108108
```jinja2
109109
{% load plotly_dash %}
110110
111-
{% plotly_item name="SimpleExample" %}
111+
{% plotly_app name="SimpleExample" %}
112112
```
113113

114114
The registration code needs to be in a location

django_plotly_dash/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
and enables it to be served as part of a Django application.
77
'''
88

9-
__version__ = "0.5.0"
9+
__version__ = "0.5.1"
1010

1111
from .dash_wrapper import DjangoDash

django_plotly_dash/templatetags/plotly_dash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
ws_default_url = "/%s" % pipe_ws_endpoint_name()
1313

14-
@register.inclusion_tag("django_plotly_dash/plotly_item.html", takes_context=True)
14+
@register.inclusion_tag("django_plotly_dash/plotly_app.html", takes_context=True)
1515
def plotly_app(context, name=None, slug=None, da=None, ratio=0.1, use_frameborder=False):
1616
'Insert a dash application using a html iframe'
1717

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ database::
3636

3737
./manage.py migrate
3838

39-
The ``plotly_item`` tag in the ``plotly_dash`` tag library can then be used to render any registered dash component. See :ref:`simple_use` for a simple example.
39+
The ``plotly_app`` tag in the ``plotly_dash`` tag library can then be used to render any registered dash component. See :ref:`simple_use` for a simple example.
4040

4141
It is important to ensure that any applications are registered using the ``DjangoDash`` class. This means that any python module containing the registration code has to be known to Django and loaded at the appropriate time. An easy way to ensure this is to import these modules into a standard Django file loaded at registration time.
4242

docs/simple_use.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ in :ref:`templates <template_tags>`:
5656
5757
{%load plotly_dash%}
5858
59-
{%plotly_item name="SimpleExample"%}
59+
{%plotly_app name="SimpleExample"%}
6060
6161
Direct use in this manner, without any application state or
6262
use of live updating, is equivalent to inserting an ``iframe`` containing the

docs/template_tags.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Importing the ``plotly_dash`` library provides the ``plotly_app`` template tag:
1818
1919
{%load plotly_dash%}
2020
21-
{%plotly_item name="SimpleExample"%}
21+
{%plotly_app name="SimpleExample"%}
2222
2323
This tag inserts
2424
a ``DjangoDash`` app within a page as a responsive ``iframe`` element.
@@ -45,7 +45,7 @@ This template tag has to be inserted on every page that uses live updating:
4545
4646
{%load plotly_dash%}
4747
48-
{%plotly_item ... DjangoDash instances using live updating ... %}
48+
{%plotly_app ... DjangoDash instances using live updating ... %}
4949
5050
{%plotly_message_pipe%}
5151

0 commit comments

Comments
 (0)