bundle.website.core.static ========================== .. py:module:: bundle.website.core.static .. autoapi-nested-parse:: Static path helpers and guarded component static file serving. Classes ------- .. autoapisummary:: bundle.website.core.static.ComponentStaticFiles Functions --------- .. autoapisummary:: bundle.website.core.static.website_root bundle.website.core.static.default_static_path bundle.website.core.static.default_components_path Module Contents --------------- .. py:function:: website_root() -> pathlib.Path Return the website package root directory. .. py:function:: default_static_path() -> pathlib.Path Return the default global static directory for the website app. .. py:function:: default_components_path() -> pathlib.Path Return the default components root directory for static mounting. .. py:class:: ComponentStaticFiles Bases: :py:obj:`fastapi.staticfiles.StaticFiles` Serve only safe static asset types from component folders. The allowlist blocks Python/templates and only exposes frontend-oriented asset types. This supports the atomic component layout (`component.ts` / `component.css` at component root plus optional `assets/`). .. py:method:: get_response(path: str, scope) :async: