Skip to content

Commit ebd2676

Browse files
committed
rename to render_mount_template
1 parent 101a23b commit ebd2676

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/reactpy/asgi/standalone.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from reactpy.asgi.middleware import ReactPyMiddleware
1515
from reactpy.asgi.utils import dict_to_byte_list, http_response, vdom_head_to_html
1616
from reactpy.types import ReactPyConfig, RootComponentConstructor, VdomDict
17-
from reactpy.utils import render_reactpy_template
17+
from reactpy.utils import render_mount_template
1818

1919
_logger = getLogger(__name__)
2020

@@ -134,7 +134,7 @@ def process_index_html(self) -> None:
134134
f"{vdom_head_to_html(self.parent.html_head)}"
135135
"<body>"
136136
f'<div id="app"></div>'
137-
f"{render_reactpy_template('app', '', '')}"
137+
f"{render_mount_template('app', '', '')}"
138138
"</body>"
139139
"</html>"
140140
)

src/reactpy/jinja.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from jinja2_simple_tags import StandaloneTag
77

8-
from reactpy.utils import render_reactpy_template
8+
from reactpy.utils import render_mount_template
99

1010
try:
1111
import_module("jinja2")
@@ -37,4 +37,4 @@ def render(self, dotted_path: str, *args, **kwargs):
3737
if kwargs:
3838
append_component_path += f"?{urllib.parse.urlencode(kwargs)}"
3939

40-
return render_reactpy_template(uuid, class_, append_component_path)
40+
return render_mount_template(uuid, class_, append_component_path)

src/reactpy/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def _vdom_attr_to_html_str(key: str, value: Any) -> tuple[str, str]:
316316
_CAMEL_CASE_SUB_PATTERN = re.compile(r"(?<!^)(?=[A-Z])")
317317

318318

319-
def render_reactpy_template(
319+
def render_mount_template(
320320
element_id: str, class_: str, append_component_path: str
321321
) -> str:
322322
return (

0 commit comments

Comments
 (0)