File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
src/django_idom/templatetags Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
- # from django import template
2
- # from django.urls import reverse
1
+ from django import template
3
2
4
3
5
- # register = template.Library()
4
+ register = template .Library ()
6
5
7
- # # Template tag that renders the IDOM scripts
8
- # @register.inclusion_tag("idom/head_content.html")
9
- # def idom_scripts():
10
- # pass
6
+ # Template tag that renders the IDOM scripts
7
+ @register .inclusion_tag ("idom/head_content.html" )
8
+ def idom_scripts ():
9
+ pass
11
10
12
- # # Template tag that renders an empty idom root object
13
- # @register.inclusion_tag("idom/root.html")
14
- # def idom_root(html_id):
15
- # return {"html_id": html_id}
11
+
12
+ # Template tag that renders an empty idom root object
13
+ @register .inclusion_tag ("idom/root.html" )
14
+ def idom_root (html_id ):
15
+ return {"html_id" : html_id }
You can’t perform that action at this time.
0 commit comments