Skip to content

Commit 8c00f6c

Browse files
author
Mark Gibbs
committed
Merged in upstream changes
2 parents fbb05b9 + 466b71a commit 8c00f6c

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE HTML>
2+
<html>
3+
{%load dexy%}
4+
<title>Simple stuff</title>
5+
<body>
6+
<div>
7+
Content here
8+
{%plotly_item "SimpleExample"%}
9+
</div>
10+
<div>
11+
Content here
12+
{%plotly_item "SimpleExample"%}
13+
</div>
14+
<div>
15+
Content here
16+
{%plotly_item "Ex2"%}
17+
</div>
18+
</body>
19+
</html>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from django import template
2+
3+
register = template.Library()
4+
5+
from django_plotly_dash.dash_wrapper import get_app_by_name
6+
7+
@register.inclusion_tag("django_plotly_dash/plotly_item.html", takes_context=True)
8+
def plotly_item(context, app_name):
9+
10+
app = get_app_by_name(app_name)
11+
url = app.base_url()
12+
13+
return locals()

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,5 @@
4141
'dash-renderer',
4242
'Django',],
4343
python_requires=">=3",
44-
4544
)
4645

0 commit comments

Comments
 (0)