File tree Expand file tree Collapse file tree 3 files changed +2
-21
lines changed Expand file tree Collapse file tree 3 files changed +2
-21
lines changed Original file line number Diff line number Diff line change 33from django .conf import settings
44
55
6- APP_DIR = Path (__file__ ).parent
7-
8- TEMPLATE_FILE_PATHS = {
9- file .stem : str (file .absolute ())
10- for file in (APP_DIR / "templates" / "idom" ).iterdir ()
11- }
12-
136IDOM_IGNORE_INSTALLED_APPS = set (getattr (settings , "IDOM_IGNORE_INSTALLED_APPS" , []))
147
158IDOM_BASE_URL = getattr (settings , "IDOM_BASE_URL" , "_idom/" )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44
55from django import template
66
7- from django_idom .app_settings import (
8- IDOM_WEB_MODULES_URL ,
9- IDOM_WEBSOCKET_URL ,
10- TEMPLATE_FILE_PATHS ,
11- )
7+ from django_idom .app_settings import IDOM_WEB_MODULES_URL , IDOM_WEBSOCKET_URL
128
139from ..app_components import has_component
1410
1511
1612register = template .Library ()
1713
1814
19- # Template tag that renders the IDOM scripts
20- @register .inclusion_tag (TEMPLATE_FILE_PATHS ["head_content" ])
21- def idom_head ():
22- pass
23-
24-
25- @register .inclusion_tag (TEMPLATE_FILE_PATHS ["view" ])
15+ @register .inclusion_tag ("idom/view.html" )
2616def idom_view (_component_id_ , ** kwargs ):
2717 if not has_component (_component_id_ ):
2818 raise ValueError (f"No component { _component_id_ !r} exists" )
You can’t perform that action at this time.
0 commit comments