create-caspian-app 0.2.0-beta.2 → 0.2.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.py CHANGED
@@ -428,6 +428,8 @@ def register_single_route(url_pattern: str, file_path: str):
428
428
  page_metadata=page_metadata,
429
429
  page_layout_props=page_layout_props,
430
430
  context_data=full_context,
431
+ page_component_source=file_path,
432
+ control_mode=True,
431
433
  component_compiler=transform_components
432
434
  )
433
435
 
@@ -481,6 +483,8 @@ async def custom_404_handler(request: Request, exc: StarletteHTTPException):
481
483
  },
482
484
  page_layout_props=None,
483
485
  context_data={'request': request},
486
+ page_component_source=not_found_path,
487
+ control_mode=True,
484
488
  transform_fn=transform_scripts
485
489
  )
486
490
  resp = HTMLResponse(content=html_output, status_code=404)
@@ -512,6 +516,8 @@ async def custom_general_exception_handler(request: Request, exc: Exception):
512
516
  },
513
517
  page_layout_props=None,
514
518
  context_data=context_data,
519
+ page_component_source=error_page_path,
520
+ control_mode=True,
515
521
  transform_fn=transform_scripts
516
522
  )
517
523
  resp = HTMLResponse(content=html_output, status_code=500)