(path_id)
| 368 | |
| 369 | |
| 370 | def _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 | |
| 383 | def _page_meta_tags(app, request): |
no test coverage detected
searching dependent graphs…