File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 ()
Original file line number Diff line number Diff line change 4141 'dash-renderer' ,
4242 'Django' ,],
4343 python_requires = ">=3" ,
44-
4544 )
4645
You can’t perform that action at this time.
0 commit comments