MCPcopy Create free account
hub / github.com/reactive-python/reactpy / read_client_index_html

Function read_client_index_html

src/py/reactpy/reactpy/backend/_common.py:96–101  ·  view source on GitHub ↗
(options: CommonOptions)

Source from the content-addressed store, hash-verified

94
95
96def read_client_index_html(options: CommonOptions) -> str:
97 return (
98 (CLIENT_BUILD_DIR / "index.html")
99 .read_text()
100 .format(__head__=vdom_head_elements_to_html(options.head))
101 )
102
103
104def vdom_head_elements_to_html(head: Sequence[VdomDict] | VdomDict | str) -> str:

Callers 4

_setup_common_routesFunction · 0.90
_make_index_routeFunction · 0.90
_setup_common_routesFunction · 0.90
_setup_common_routesFunction · 0.90

Calls 1

Tested by

no test coverage detected