corvix.web.assets

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

Functions

Module Contents

corvix.web.assets._STATIC_ROOT[source][source]
corvix.web.assets._STATIC_ASSETS_DIR = ''[source][source]
corvix.web.assets._ASSET_FILENAMES = ('app.js', 'index.css', 'favicon.svg', 'theme-init.js')[source][source]
corvix.web.assets._ASSET_CACHE_CONTROL[source][source]
corvix.web.assets._MEDIA_TYPE_HTML = 'text/html'[source][source]
corvix.web.assets._asset_version_token() str[source][source]
corvix.web.assets._INDEX_HTML_TEMPLATE[source][source]
corvix.web.assets.INDEX_HTML[source][source]