MCPcopy
hub / github.com/plotly/dash / _path_to_page

Function _path_to_page

dash/_pages.py:370–380  ·  view source on GitHub ↗
(path_id)

Source from the content-addressed store, hash-verified

368
369
370def _path_to_page(path_id):
371 path_variables = None
372 for page in PAGE_REGISTRY.values():
373 if page["path_template"]:
374 template_id = page["path_template"].strip("/")
375 path_variables = _parse_path_variables(path_id, template_id)
376 if path_variables:
377 return page, path_variables
378 if path_id == page["path"].strip("/"):
379 return page, path_variables
380 return {}, None
381
382
383def _page_meta_tags(app, request):

Callers 2

updateMethod · 0.85
_page_meta_tagsFunction · 0.85

Calls 1

_parse_path_variablesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…