corvix.web.assets ================= .. py:module:: corvix.web.assets .. autoapi-nested-parse:: Static asset resolution and the cached index.html body. Owns the static-asset directory, the content-hash asset-version token, and the rendered ``INDEX_HTML`` (the SPA shell with the version token substituted in). Kept separate from the route handlers so both the page routes and the app assembly can share these constants without importing route modules. Attributes ---------- .. autoapisummary:: corvix.web.assets._STATIC_ROOT corvix.web.assets._STATIC_ASSETS_DIR corvix.web.assets._ASSET_FILENAMES corvix.web.assets._ASSET_CACHE_CONTROL corvix.web.assets._MEDIA_TYPE_HTML corvix.web.assets._INDEX_HTML_TEMPLATE corvix.web.assets.INDEX_HTML Functions --------- .. autoapisummary:: corvix.web.assets._asset_version_token Module Contents --------------- .. py:data:: _STATIC_ROOT .. py:data:: _STATIC_ASSETS_DIR :value: '' .. py:data:: _ASSET_FILENAMES :value: ('app.js', 'index.css', 'favicon.svg', 'theme-init.js') .. py:data:: _ASSET_CACHE_CONTROL .. py:data:: _MEDIA_TYPE_HTML :value: 'text/html' .. py:function:: _asset_version_token() -> str .. py:data:: _INDEX_HTML_TEMPLATE .. py:data:: INDEX_HTML