Skip to content

Commit cfbe2cf

Browse files
committed
attempt re-adding tag stuff
1 parent 202207a commit cfbe2cf

File tree

1 file changed

+11
-11
lines changed
  • src/django_idom/templatetags

1 file changed

+11
-11
lines changed

src/django_idom/templatetags/tags.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# from django import template
2-
# from django.urls import reverse
1+
from django import template
32

43

5-
# register = template.Library()
4+
register = template.Library()
65

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
1110

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}

0 commit comments

Comments
 (0)